diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-10-23 19:45:36 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-10-23 19:56:28 -0700 |
commit | f918675c8b11adb80a83000a3a984e4ff3bdcf1b (patch) | |
tree | 2472316e3bf536e0bad76751c5f3504d029b8215 /mu.vim | |
parent | af7349d50c40e0604c9bb1e9a50aa1c3c0d407d8 (diff) | |
download | mu-f918675c8b11adb80a83000a3a984e4ff3bdcf1b.tar.gz |
3569
Update syntax highlighting to not color numeric locations like literals.
Diffstat (limited to 'mu.vim')
-rw-r--r-- | mu.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mu.vim b/mu.vim index a9e5e109..749579ff 100644 --- a/mu.vim +++ b/mu.vim @@ -43,8 +43,8 @@ highlight link muScreen muString " Mu literals syntax match muLiteral %[^ ]\+:literal/[^ ,]*\|[^ ]\+:literal\>% -syntax match muLiteral %\<[0-9-]\?[0-9]\+\>% syntax match muLiteral %\<[0-9-]\?[0-9]\+/[^ ,]*% +syntax match muLiteral % [0-9-]\?[0-9]\+[, ]\@=\| [0-9-]\?[0-9]\+$% syntax match muLiteral "^\s\+[^ 0-9a-zA-Z{}#\[\]][^ ]*\s*$" " labels syntax match muLiteral %[^ ]\+:label/[^ ,]*\|[^ ]\+:label\>% @@ -56,7 +56,9 @@ highlight link muLiteral Constant syntax keyword muKeyword default-space global-space new-default-space local-scope next-ingredient ingredient rewind-ingredients load-ingredients | highlight link muKeyword Constant syntax match muDelimiter "[{}]" | highlight link muDelimiter Delimiter -syntax match muAssign " <- \|\<raw\>" | highlight link muAssign SpecialChar +syntax match muAssign "<-" +syntax match muAssign "\<raw\>" +highlight link muAssign SpecialChar syntax match muGlobal %[^ ]\+:global/\?[^ ,]*% | highlight link muGlobal SpecialChar syntax keyword muControl reply reply-if reply-unless return return-if return-unless jump jump-if jump-unless loop loop-if loop-unless break break-if break-unless current-continuation continue-from create-delimited-continuation reply-delimited-continuation | highlight muControl ctermfg=3 " common keywords |