about summary refs log tree commit diff stats
path: root/mu.vim
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-03-23 02:16:32 -0700
committerKartik Agaram <vc@akkartik.com>2020-03-23 20:56:49 -0700
commit783eb31a0527677e6c684efc835bd13f9355a2f3 (patch)
tree62a6c770a7e505f3869f1e4b08463436a754d4e5 /mu.vim
parent98d45d34deb456de19f922bc13ac6a99720c2b32 (diff)
downloadmu-783eb31a0527677e6c684efc835bd13f9355a2f3.tar.gz
6162
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\>"