aboutsummaryrefslogtreecommitdiff
path: root/files/.vim/after/syntax/help.vim
diff options
context:
space:
mode:
authorAnton Bobov <bobov_a@sibsac.ru>2011-10-13 11:17:19 +0600
committerAnton Bobov <bobov_a@sibsac.ru>2011-10-13 11:17:19 +0600
commitda709cd9e90c3ab644bb92700f0ed40d965b80d3 (patch)
tree144e5470327f72b8489141cd7595b652c6c32616 /files/.vim/after/syntax/help.vim
Initial commit.
Diffstat (limited to 'files/.vim/after/syntax/help.vim')
-rwxr-xr-xfiles/.vim/after/syntax/help.vim24
1 files changed, 24 insertions, 0 deletions
diff --git a/files/.vim/after/syntax/help.vim b/files/.vim/after/syntax/help.vim
new file mode 100755
index 0000000..5215867
--- /dev/null
+++ b/files/.vim/after/syntax/help.vim
@@ -0,0 +1,24 @@
+" Help extensions for luarefvim
+" This is somewhat based on CRefVim
+" Maintainer: Luis Carvalho <lexcarvalho@gmail.com>
+" Last Change: May, 26, 2005
+" Version: 0.1
+
+" add three syntax classes: bold, emph (italic) and code -- similarly to html
+syn match helpIgnoreBold "#[a-zA-Z0-9&()\`\'\"\-\+\*=\[\]\{\}\.,;: ]\+#" contains=helpMatchBold
+syn match helpMatchBold "[a-zA-Z0-9&()\`\'\"\-\+\*=\[\]\{\}\.,;: ]\+" contained
+syn match helpIgnoreEmph "@[a-zA-Z0-9&()\`\'\"\-\+\*=\[\]\{\}\.,;: ]\+@" contains=helpMatchEmph
+syn match helpMatchEmph "[a-zA-Z0-9&()\`\'\"\-\+\*=\[\]\{\}\.,;: ]\+" contained
+" this match is the same as in CRefVim's help.vim (that is, uses $$):
+" the idea is to keep some degree of portability.
+syn match helpIgnoreCode "\$[a-zA-Z0-9@\\\*/\._=()\-+%<>&\^|!~\?:,\[\];{}#\`\'\" ]\+\$" contains=helpMatchCode
+syn match helpMatchCode "[a-zA-Z0-9@\\\*/\._=()\-+%<>&\^|!~\?:,\[\];{}#\`\'\" ]\+" contained
+
+" syn high links
+hi def link helpIgnoreBold Ignore
+hi def link helpIgnoreEmph Ignore
+hi def link helpIgnoreCode Ignore
+hi def link helpMatchBold Function
+hi def link helpMatchEmph Special
+hi def link helpMatchCode Comment
+