commit 796ad385307656985d16c7377b441807f4735fda
parent 44c3449156c2ef56b80eb982afa7c07e94f6dc72
Author: Amelia Clarke <me@rsaihe.dev>
Date: Mon, 22 Aug 2022 19:45:45 -0700
syntax: add highlight group for attributes
This commit moves the existing syntax highting for attributes to a
dedicated highlight group.
Signed-off-by: Amelia Clarke <me@rsaihe.dev>
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/syntax/hare.vim b/syntax/hare.vim
@@ -26,7 +26,7 @@ syn keyword hareBuiltin len offset free alloc assert append abort delete insert
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 hareAttribute "@[a-z]*"
syn match hareOperator "\.\.\." "\.\."
syn match hareErrorAssertion "\v(^([^/]|//@!)*\)\_s*)@<=!\=@!"
syn match hareQuestionMark "?"
@@ -68,6 +68,7 @@ syn keyword hareType valist
syn keyword hareNull null
syn keyword hareBoolean true false
+hi def link hareAttribute Keyword
hi def link hareBoolean Boolean
hi def link hareBuiltin Function
hi def link hareComment Comment