about summary refs log tree commit diff stats
path: root/editor
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-06-06 15:33:11 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-06-06 15:33:11 -0700
commit4c07de4d3bd28083e83642fe5b98262bedbaa2ea (patch)
treee3fc804db495f08b3fe59814ec1f4d570d27b0e8 /editor
parentc5983ab3cc60be25842ea8da12f7b3b7b450a390 (diff)
downloadmu-4c07de4d3bd28083e83642fe5b98262bedbaa2ea.tar.gz
.
Diffstat (limited to 'editor')
-rw-r--r--editor/mulisp.vim10
1 files changed, 6 insertions, 4 deletions
diff --git a/editor/mulisp.vim b/editor/mulisp.vim
index 0f57cc90..1897268b 100644
--- a/editor/mulisp.vim
+++ b/editor/mulisp.vim
@@ -16,18 +16,20 @@ setlocal iskeyword=@,48-57,?,!,_,$
 " Hack: I define new syntax groups here, and I don't know how to distribute
 " colorscheme-independent color suggestions for them.
 highlight Normal ctermfg=245
-highlight MuLispNormal ctermfg=0
-highlight muLispKeyword ctermfg=2
+highlight muLispNormal ctermfg=0
+highlight muLispOuterKeyword ctermfg=2
+highlight link muLispKeyword Type
 
 syntax region String   start=+"+  skip=+\\"+  end=+"+
 
-syntax region muLispNormal matchgroup=Normal start=/\[/ end=/\]/ contains=muLispLiteral,muLispComment,muLispDelimiter
+syntax region muLispNormal matchgroup=Normal start=/\[/ end=/\]/ contains=muLispLiteral,muLispComment,muLispDelimiter,muLispKeyword
 
 syntax match muLispComment /#.*/ contained | highlight link muLispComment Comment
 syntax match muLispLiteral /\<[0-9]\+\>/ contained | highlight link muLispLiteral Constant
 syntax match muLispLiteral /\[[^\]]*\]/ contained
 syntax match muLispDelimiter /[(),@`]/ contained | highlight link muLispDelimiter Delimiter
 
-syntax keyword muLispKeyword globals sandbox
+syntax keyword muLispOuterKeyword globals sandbox
+syntax keyword muLispKeyword fn def mac let if while for
 
 let &cpo = s:save_cpo