Compare commits

...

3 Commits

Author SHA1 Message Date
rhiannon morris 6cba1c2dff fix number literals 2022-03-23 04:46:21 +01:00
rhiannon morris 86f0e421f4 constants 2022-03-16 04:46:58 +01:00
rhiannon morris 21e4a63b6f fix view 2022-03-16 04:20:41 +01:00
1 changed files with 21 additions and 3 deletions

View File

@ -20,13 +20,13 @@ hi def link maudeFMod maudeMod
syn keyword maudeSMod smod endsm sth endsth
hi def link maudeSMod maudeMod
syn keyword maudeView view from to endv
hi def link maudeView maudeMod
syn keyword maudeIs is
hi def link maudeIs maudeMod
syn keyword maudeView view from to endv
hi def link maudeView maudeModule
syn keyword maudeImport protecting pr including inc extending ex
hi def link maudeImport Include
@ -69,6 +69,24 @@ hi def link maudePunc Operator
syn match maudeDelim '[{}\[\](),]\|\%(^\|\s\)\zs\.\ze\%(\s\|$\)'
hi def link maudeDelim Delimiter
syn match maudeString /"\%([^"\\]\|\\.\)*"/ contains=maudeStringEsc
hi def link maudeString String
syn match maudeStringEsc /\\./ contained
hi def link maudeStringEsc SpecialChar
syn match maudeIdEsc /`[\[\]{}()]\?/
hi def link maudeIdEsc SpecialChar
syn match maudeQid /''\?\S\+/
syn match maudeQid /'"\%([^"\\]\|\\.\)*"/ contains=maudeStringEsc
hi def link maudeQid Constant
syn match maudeNum !\%(^\|\s\)\zs-\?\d\+\%(/\d\+\)\?\ze\%(\s\|$\)!
syn match maudeNum /\%(^\|\s\)\zs-\?\d\+\.\d\+\%([Ee][+-]\?\d\+\)\?\ze\%(\s\|$\)/
syn keyword maudeNum Infinity -Infinity
hi def link maudeNum Number
syn keyword maudeCommand load set quit
hi def link maudeCommand Special