hare.vim

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

commit e14e6f4c36e6347183073a6d157aa80faf2e8413
parent ad43995e5c27bc5a7fdbfc7a5be0909b332e4906
Author: Vlad-Stefan Harbuz <vlad@vladh.net>
Date:   Wed,  8 Jun 2022 14:08:23 +0100

do not highlight "size" if it is inside a word

Signed-off-by: Vlad-Stefan Harbuz <vlad@vladh.net>

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

diff --git a/syntax/hare.vim b/syntax/hare.vim @@ -13,8 +13,8 @@ syn keyword hareLabel case syn keyword hareBuiltin len offset free alloc assert append abort delete insert syn keyword hareBuiltin vastart vaarg vaend syn keyword hareOperator is as -syn match hareType "\vsize((\_\s|//.*)*\()@!" -syn match hareBuiltin "\vsize((\_\s|//.*)*\()@=" +syn match hareType "\v<size>((\_\s|//.*)*\()@!" +syn match hareBuiltin "\v<size>((\_\s|//.*)*\()@=" syn match harePreProc "^use .*;" syn match harePreProc "@[a-z]*" syn match hareOperator "\.\.\." "\.\."