about summary refs log tree commit diff stats
path: root/mu.vim
diff options
context:
space:
mode:
Diffstat (limited to 'mu.vim')
-rw-r--r--mu.vim15
1 files changed, 10 insertions, 5 deletions
diff --git a/mu.vim b/mu.vim
index 363ac862..9206d27c 100644
--- a/mu.vim
+++ b/mu.vim
@@ -42,16 +42,21 @@ syntax match muAssign "<-"
 highlight link muAssign SpecialChar
 
 " common keywords
-" use regular expressions for common words that may come after '/'
 syntax match muControl "^return\>\| return\>"
 syntax match muControl "\<jump\>\|\<jump-if[^ ]*"
 syntax match muControl "\<break\>\|\<break-if[^ ]*"
 syntax match muControl "\<loop\>\|\<loop-if[^ ]*"
-highlight link muControl Identifier
+highlight link muControl PreProc
 
-syntax match muRecipe " -> "
-syntax keyword muRecipe fn type var
-highlight link muRecipe PreProc
+syntax match muKeyword " -> "
+syntax keyword muKeyword fn type var
+highlight link muKeyword PreProc
+
+syntax match muFunction "\(fn\s*\)\@<=\(\S\+\)"
+highlight muFunction cterm=underline ctermfg=130
+
+syntax match muTest "\(fn\s*\)\@<=\(test-\S\+\)"
+highlight muTest ctermfg=64
 
 syntax match muData "^type\>"
 syntax match muData "\<eax\>\|\<ecx\>\|\<edx\>\|\<ebx\>\|\<esi\>\|\<edi\>"