summaryrefslogtreecommitdiff
path: root/colm.vim
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2011-03-24 04:24:52 +0000
committerAdrian Thurston <thurston@complang.org>2011-03-24 04:24:52 +0000
commit6b6229980be2b0034b49eb66f00d62325e781882 (patch)
tree027aa847a7bf785cd85bd6eca972df7ebb08da72 /colm.vim
parent36a82b183881a0c587a98a53580a903d630881e3 (diff)
downloadcolm-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.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/colm.vim b/colm.vim
index 2a1938fd..1ff3aff5 100644
--- a/colm.vim
+++ b/colm.vim
@@ -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"