about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-18 08:54:45 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-18 08:54:45 -0700
commit49073ebeef77aea075728953a9fb05d968e1c46a (patch)
treed8a18566968f6a4281b2677671413e3992c72faf
parentc85254c858f2086efe9f522341ba714341a62747 (diff)
downloadmu-49073ebeef77aea075728953a9fb05d968e1c46a.tar.gz
vim highlighting for labels
-rw-r--r--mu.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/mu.vim b/mu.vim
index c8210d16..5c120676 100644
--- a/mu.vim
+++ b/mu.vim
@@ -32,7 +32,8 @@ syntax region muString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell
 highlight link muString String
 
 syntax match muDelimiter "[{}\[\]]" | highlight link muDelimiter Delimiter
-syntax match muAssign "<-" | highlight link muAssign SpecialChar
+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 jump jump-if jump-unless loop loop-if loop-unless break-if break-unless | highlight link muControl Function
 " common keywords