~sircmpwn/hare.vim

3be6efa5ef6e43683d6b72a209a90cd090b3ab64 — Amelia Clarke 2 years ago 6141ee5
Highlight capital E in number literals

Signed-off-by: Amelia Clarke <me@rsaihe.dev>
1 files changed, 3 insertions(+), 3 deletions(-)

M syntax/hare.vim
M syntax/hare.vim => syntax/hare.vim +3 -3
@@ 29,16 29,16 @@ syn region hareString start=+`+ end=+`+ contains=hareEscapeRaw
"adapted from c.vim
"integer number, or floating point number without a dot and with "f".
syn match	hareNumbers		display transparent "\v<\d" contains=hareNumber,hareOctal,hareBinary,hareFloat
syn match	hareNumber		display contained "\v\d+(e[-+]?\d+)?(z|[iu](8|16|32|64)?)?"
syn match	hareNumber		display contained "\v\d+([Ee][-+]?\d+)?(z|[iu](8|16|32|64)?)?"
"hex number
syn match	hareNumber		display contained "\v0x\x+(z|[iu](8|16|32|64)?)?"
"octal number
syn match	hareOctal		display contained "\v0o\o+(z|[iu](8|16|32|64)?)?"
"binary number
syn match	hareBinary		display contained '\v0b[01]+(z|[iu](8|16|32|64)?)?'
syn match	hareFloat		display contained "\v\d+(e[-+]?\d+)?(f32|f64)"
syn match	hareFloat		display contained "\v\d+([Ee][-+]?\d+)?(f32|f64)"
"floating point number, with dot, optional exponent
syn match	hareFloat		display contained "\v\d+\.\d+(e[-+]?\d+)?(f32|f64)?"
syn match	hareFloat		display contained "\v\d+\.\d+([Ee][-+]?\d+)?(f32|f64)?"

syn match	hareSpaceError		display excludenl "\v\s+$"
syn match	hareSpaceError		display "\v +\t"me=e-1