hare.vim

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

commit 69e1962e98beb1080114d0e404260c1567f6af97
parent adcf043b6923beffbae7aba6f4aad2d3ccbd2bd5
Author: Sebastian <sebastian@sebsite.pw>
Date:   Tue, 21 Jun 2022 15:32:03 -0400

Highlight size correctly when a comment starts with (

Example code that highlighted incorrectly:

	size // (

Signed-off-by: Sebastian <sebastian@sebsite.pw>

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 "\v<size>((\_\s|//.*)*\()@!" -syn match hareBuiltin "\v<size>((\_\s|//.*)*\()@=" +syn match hareType "\v<size>((\_s|//.*\n)*\()@!" +syn match hareBuiltin "\v<size>((\_s|//.*\n)*\()@=" syn match harePreProc "^use .*;" syn match harePreProc "@[a-z]*" syn match hareOperator "\.\.\." "\.\."