From 0b4b4f993b9fbf52b7fbe5aa443ca4155c0eac8b Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 10 May 2022 19:46:54 +0200 Subject: Add 'godoc' plugin Create a new 'godoc' filetype that highlights the same as 'go' except without the character group. This makes Go docs produced by the `go doc` command more readable. --- bundle/godoc/syntax/godoc.vim | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 bundle/godoc/syntax/godoc.vim (limited to 'bundle/godoc/syntax') diff --git a/bundle/godoc/syntax/godoc.vim b/bundle/godoc/syntax/godoc.vim new file mode 100644 index 0000000..b68094f --- /dev/null +++ b/bundle/godoc/syntax/godoc.vim @@ -0,0 +1,8 @@ +if exists("b:current_syntax") + finish +endif + +runtime! syntax/go.vim + +" Character highlighting breaks highlighting when text blocks use apostrophes. +syntax clear goCharacter -- cgit v1.2.3