hare.vim

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

commit c45a0c7665fce3bedd963388da7b320111fcf05c
parent aeda208dbf95a85aad5d5e677f2d8479417e04cd
Author: Amelia Clarke <me@rsaihe.dev>
Date:   Mon, 22 Aug 2022 19:57:46 -0700

syntax: add highlighting for [[...]] in comments

Signed-off-by: Amelia Clarke <me@rsaihe.dev>

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

diff --git a/syntax/hare.vim b/syntax/hare.vim @@ -76,7 +76,8 @@ syn keyword hareTodo FIXME TODO XXX contained syn match hareAttribute "@[a-z]*" " Comments. -syn region hareComment start="//" end="$" contains=hareTodo,@Spell +syn region hareComment start="//" end="$" contains=hareCommentDoc,hareTodo,@Spell display keepend +syn region hareCommentDoc start="\[\[" end="]]\|\ze\_s" contained display " The size keyword can be either a builtin or a type. syn match hareBuiltin "\v<size>\ze(\_s*//.*\_$)*\_s*\(" contains=hareComment @@ -96,6 +97,7 @@ hi def link hareAttribute Keyword hi def link hareBoolean Boolean hi def link hareBuiltin Function hi def link hareComment Comment +hi def link hareCommentDoc SpecialComment hi def link hareConditional Conditional hi def link hareEscape SpecialChar hi def link hareFloat Float