diff options
author | Teddy Wing | 2022-05-10 19:46:54 +0200 |
---|---|---|
committer | Teddy Wing | 2022-05-11 00:47:58 +0200 |
commit | 0b4b4f993b9fbf52b7fbe5aa443ca4155c0eac8b (patch) | |
tree | 70b0761a63899d061f3d28c6d8851a21ade6280d | |
parent | 17ce0c9e217627bc51d15142b039764657a97510 (diff) | |
download | dotvim-0b4b4f993b9fbf52b7fbe5aa443ca4155c0eac8b.tar.bz2 |
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.
-rw-r--r-- | bundle/godoc/syntax/godoc.vim | 8 |
1 files changed, 8 insertions, 0 deletions
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 |