Browse Source

fix number literals

main
rhiannon morris 8 months ago
parent
commit
6cba1c2dff
  1. 4
      syntax/maude.vim

4
syntax/maude.vim

@ -82,8 +82,8 @@ syn match maudeQid /''\?\S\+/ @@ -82,8 +82,8 @@ 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 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

Loading…
Cancel
Save