aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/godoc
diff options
context:
space:
mode:
authorTeddy Wing2022-05-10 19:46:54 +0200
committerTeddy Wing2022-05-11 00:47:58 +0200
commit0b4b4f993b9fbf52b7fbe5aa443ca4155c0eac8b (patch)
tree70b0761a63899d061f3d28c6d8851a21ade6280d /bundle/godoc
parent17ce0c9e217627bc51d15142b039764657a97510 (diff)
downloaddotvim-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.
Diffstat (limited to 'bundle/godoc')
-rw-r--r--bundle/godoc/syntax/godoc.vim8
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