hare.vim

[vim] Hare vim plugin
git clone https://git.torresjrjr.com/hare.vim.git
Log | Files | Refs | README | LICENSE

commit 62e82e189ba84d3071c1ca3c9b712f6bc2beec54
parent e9343e14e3e0f5f2e2c8501f40bfca970485d1d7
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat,  9 May 2020 18:45:38 -0400

Fix highlighting of ... and .. operators

Diffstat:
Msyntax/hare.vim | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/syntax/hare.vim b/syntax/hare.vim @@ -1,9 +1,6 @@ " Vim syntax file " Language: Hare -" TODO: -" Highlight ... in [x, y, z...] - if exists("b:current_syntax") finish endif @@ -15,8 +12,7 @@ syn keyword hareBuiltin len offset free alloc assert " TODO: highlight size correctly both as keyword and type syn match harePreProc "^use .*;" syn match harePreProc "@[a-z]*" -" TODO: This doesn't seem to work: -syn match hareOperator "\.\." "\.\.\." +syn match hareOperator "\.\.\." "\.\." syn region hareString start=+\z(["']\)+ end=+\z1+ skip=+\\\\\|\\\z1+ @@ -34,7 +30,7 @@ syn match hareOctal display contained "0\o\+\(u\=l\{0,2}\|ll\=u\)\>" contains=h syn match hareOctalZero display contained "\<0" syn match hareFloat display contained "\d\+f" "floating point number, with dot, optional exponent -syn match hareFloat display contained "\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\=" +syn match hareFloat display contained "\d\+\.\d+\(e[-+]\=\d\+\)\=[fl]\=" "floating point number, starting with a dot, optional exponent syn match hareFloat display contained "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>" "floating point number, without dot, with exponent