Add syntax for float literals

This commit is contained in:
Vanessa McHale 2020-02-10 23:04:04 -06:00
parent 89fceeee49
commit bcb646ea86
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,9 @@ syn match atsInt "\v[0-9]+"
syn match atsUint "\v[0-9]+u"
syn match atsHex "\v0x[0-9a-fA-F]+"
syn match atsFloat "\v[0-9]+\.[0-9]+f"
syn match atsDouble "\v[0-9]+\.[0-9]+"
syn match atsSpecial +\v\\['"nt\\{]+
syn match atsSpecial -\v\\[0-9]+-
@ -77,6 +80,8 @@ highlight link atsString String
highlight link atsUint Number
highlight link atsInt Number
highlight link atsHex Number
highlight link atsFloat Number
highlight link atsDouble Number
highlight link atsChar Character
highlight link atsComment Comment
highlight link atsNestComment Comment