diff options
author | Adrian Thurston <thurston@complang.org> | 2011-03-24 04:24:52 +0000 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2011-03-24 04:24:52 +0000 |
commit | 6b6229980be2b0034b49eb66f00d62325e781882 (patch) | |
tree | 027aa847a7bf785cd85bd6eca972df7ebb08da72 /colm.vim | |
parent | 36a82b183881a0c587a98a53580a903d630881e3 (diff) | |
download | colm-6b6229980be2b0034b49eb66f00d62325e781882.tar.gz |
Function parameters and variable declarations are now all in pattern-style,
"Name: type". refs #241.
Diffstat (limited to 'colm.vim')
-rw-r--r-- | colm.vim | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -31,7 +31,7 @@ syntax region rlTypeRegion matchgroup=regionDelimiter start="/" end="/" \ contains=@rlTypes syntax region cflTypeRegion matchgroup=regionDelimiter start="\[" end="\]" - \ contains=cflTypeRegion,patRegion,otLit,typeKeywords + \ contains=cflTypeRegion,patRegion,otLit,typeKeywords,varCapture,qual syntax region patRegion matchgroup=String start="\"" end="\"" end="\n" \ contains=char,cflTypeRegion @@ -67,6 +67,8 @@ syntax keyword Keyword \ new deref syntax match tokenName "[a-zA-Z_][a-zA-Z_0-9]*" contained +syntax match varCapture "[a-zA-Z_][a-zA-Z_0-9]*:" +syntax match qual "[a-zA-Z_][a-zA-Z_0-9]*::" syntax region defTypes matchgroup=defKeywords \ start="\<rl\>" start="\<def\>" start="\<token\>" start="\<ignore\>" @@ -87,5 +89,6 @@ hi link typeKeywords Type hi link regionDelimiter Type hi link char String hi link tokenName Function +hi link varCapture Identifier let b:current_syntax = "colm" |