From da709cd9e90c3ab644bb92700f0ed40d965b80d3 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Thu, 13 Oct 2011 11:17:19 +0600 Subject: Initial commit. --- files/.vim/after/syntax/help.vim | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 files/.vim/after/syntax/help.vim (limited to 'files/.vim/after/syntax/help.vim') 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 +" 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 + -- cgit v1.2.3