From 5d0a3fc510d7117a1446bc77c42a5151f465564c Mon Sep 17 00:00:00 2001 From: Adam Wick Date: Wed, 12 Jan 2011 17:43:05 -0800 Subject: [PATCH] Add a basic vim syntax highlighting file. --- bang.vim | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 bang.vim diff --git a/bang.vim b/bang.vim new file mode 100644 index 0000000..0bd2216 --- /dev/null +++ b/bang.vim @@ -0,0 +1,24 @@ +" Bang syntax file. +if version < 600 + syn clear +elseif exists("b:current_syntax") + finish +endif + +syn match bsModule "\" +syn match bsStructure "\<\(class\|datatype\|instance\)\>" +syn match bsTypedef "\<\(type\|newtype\)\>" +syn match bsColonColon "::" +syn keyword bsConditional case of if then else otherwise +syn keyword bsModifier export restrict +syn region bsComment matchgroup=bsCommentStart start="/\*" end="\*/" + + +hi def link bsModule Include +hi def link bsStructure Structure +hi def link bsTypedef Typedef +hi def link bsModifier StorageClass +hi def link bsConditional Conditional +hi def link bsColonColon Type +hi def link bsComment Comment +hi def link bsCommentStart Comment