diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-10 12:50:28 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-10 12:50:28 -0700 |
commit | a6d9bd9b5b904db36657088e9abd370d546f086d (patch) | |
tree | 98682d008bb6c55b60476af97fa9e362e8f60c6b | |
parent | e3894819b3d3a7809b63a76cfdafa4c455eb9a6c (diff) | |
download | mu-a6d9bd9b5b904db36657088e9abd370d546f086d.tar.gz |
1333
-rw-r--r-- | mu.vim | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/mu.vim b/mu.vim index 2dda5523..6411789e 100644 --- a/mu.vim +++ b/mu.vim @@ -28,13 +28,21 @@ set comments+=n:# syntax match CommentedCode "#? .*" let b:cmt_head = "#? " -" don't match '[' at end of line, that's usually start of code -syntax region muString start=+\[[^\]]+ skip=+\\\\+ end=+\]+ +" mu strings are inside [ ... ] and can span multiple lines +" don't match '[' at end of line, that's usually code +syntax region muString start=+\[[^\]]+ end=+\]+ syntax match muString "\[\]" highlight link muString String +" mu syntax for representing the screen in scenarios +syntax region muScreen start=+ \.+ end=+\.$\|$+ +highlight link muScreen muString + +" all mu literals are constants +syntax match muNumber %[^ ]\+:literal/\?[^ ,]*% +highlight link muNumber Constant syntax match muDelimiter "[{}]" | highlight link muDelimiter Delimiter -syntax match muLabel " [^a-zA-Z0-9 \[][a-zA-Z0-9-]\+" | highlight link muLabel Function +syntax match muLabel " [^a-zA-Z0-9 \[\.][a-zA-Z0-9-]\+" | highlight link muLabel Function syntax match muAssign " <- " | highlight link muAssign SpecialChar syntax match muAssign "\<raw\>" syntax keyword muControl reply reply-if reply-unless jump jump-if jump-unless loop loop-if loop-unless break-if break-unless | highlight link muControl Function |