constants

This commit is contained in:
rhiannon morris 2022-03-16 04:37:30 +01:00
parent 21e4a63b6f
commit 86f0e421f4
1 changed files with 18 additions and 0 deletions

View File

@ -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 !-\?\d\+\%(/\d\+\)\?!
syn match maudeNum /-\?\d\+\.\d\+\%([Ee][+-]\?\d\+\)\?/
syn keyword maudeNum Infinity -Infinity
hi def link maudeNum Number
syn keyword maudeCommand load set quit
hi def link maudeCommand Special