From 783eb31a0527677e6c684efc835bd13f9355a2f3 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 23 Mar 2020 02:16:32 -0700 Subject: 6162 --- mu.vim | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'mu.vim') 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 "\\|\\|\\|\ " -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 "\\|\\|\\|\\|\\|\" -- cgit 1.4.1-2-gfad0