diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-06-30 21:58:55 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-06-30 21:58:55 -0700 |
commit | b085378e948fed8a77b6e42c1a76673f888decb6 (patch) | |
tree | f5aa761c2922ec8931128b3cbf7b345fd28846cc | |
parent | 57dfb5ef07f002b63b862518a398b87c1dcb930c (diff) | |
download | mu-b085378e948fed8a77b6e42c1a76673f888decb6.tar.gz |
4294
-rw-r--r-- | mu.vim | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mu.vim b/mu.vim index 86f71ff8..d62b792f 100644 --- a/mu.vim +++ b/mu.vim @@ -23,15 +23,15 @@ setlocal iskeyword=@,48-57,?,!,_,$,- setlocal formatoptions-=t " Mu programs have long lines setlocal formatoptions+=c " but comments should still wrap -syntax match muComment /#.*$/ | highlight link muComment Comment -syntax match muSalientComment /##.*$/ | highlight link muSalientComment SalientComment -syntax match muComment /;.*$/ | highlight link muComment Comment -syntax match muSalientComment /;;.*$/ | highlight link muSalientComment SalientComment +syntax match muComment /#.*$/ | highlight link muComment Comment +syntax match muSalientComment /##.*$/ | highlight link muSalientComment SalientComment +syntax match muComment /;.*$/ | highlight link muComment Comment +syntax match muSalientComment /;;.*$/ | highlight link muSalientComment SalientComment set comments+=n:# -syntax match muCommentedCode "#? .*" | highlight link muCommentedCode CommentedCode +syntax match muCommentedCode "#? .*" | highlight link muCommentedCode CommentedCode let b:cmt_head = "#? " -syntax match muDelimiter "[{}]" | highlight link muDelimiter Delimiter +syntax match muDelimiter "[{}]" | highlight link muDelimiter Delimiter " Mu strings are inside [ ... ] and can span multiple lines " don't match '[' at end of line, that's usually code @@ -62,7 +62,7 @@ highlight link muLiteral Constant syntax match muAssign "<-" syntax match muAssign "\<raw\>" highlight link muAssign SpecialChar -syntax match muGlobal %[^ ]\+:global/\?[^ ,]*% | highlight link muGlobal SpecialChar +syntax match muGlobal %[^ ]\+:global/\?[^ ,]*% | highlight link muGlobal SpecialChar " common keywords " use regular expressions for common words that may come after '/' @@ -89,8 +89,8 @@ syntax match muRecipe "^recipe\>\|^def\>\|^before\>\|^after\>\| -> " syntax keyword muRecipe recipe! def! function fn highlight muRecipe ctermfg=208 -syntax match muScenario "^scenario\>" | highlight muScenario ctermfg=34 -syntax keyword muPendingScenario pending-scenario | highlight link muPendingScenario SpecialChar +syntax match muScenario "^scenario\>" | highlight muScenario ctermfg=34 +syntax keyword muPendingScenario pending-scenario | highlight link muPendingScenario SpecialChar syntax match muData "^type\>\|^container\>" syntax keyword muData exclusive-container highlight muData ctermfg=226 |