hare.vim

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

commit e24288327f88f459025a00632c7b1f543759906a
parent b075ec0969677b93204c3c5fb4232f4212523ecb
Author: Sebastian <sebastian@sebsite.pw>
Date:   Fri,  8 Sep 2023 00:23:03 -0400

syntax: highlight invalid attributes as errors

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

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

diff --git a/syntax/hare.vim b/syntax/hare.vim @@ -79,7 +79,8 @@ syn region hareString start="`" end="`" contains=hareFormat display syn keyword hareTodo FIXME TODO XXX contained " Attributes. -syn match hareAttribute "@[a-z]*" +syn match hareAttributeError "\v\@\w+" +syn match hareAttribute "\v\@(fini|init|offset|packed|symbol|test|threadlocal)>" " Blocks. syn region hareBlock start="{" end="}" fold transparent @@ -128,6 +129,7 @@ hi def link hareType Type hi def link hareTypedef Typedef hi def link hareUse PreProc +hi def link hareAttributeError Error hi def link hareSpaceError Error autocmd InsertEnter * hi link hareSpaceError NONE autocmd InsertLeave * hi link hareSpaceError Error