Add punctuations highlighting

This commit is contained in:
Bruno BELANYI 2024-04-08 21:31:38 +01:00
parent a9ec312792
commit 42bef1d592
2 changed files with 31 additions and 0 deletions

View file

@ -9,6 +9,22 @@
(integer_literal ("-") @operator)
; }}}
; Punctuation {{{
[
","
":"
] @punctuation.delimiter
[
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket
; }}}
; Literal {{{
(boolean_literal) @boolean

View file

@ -0,0 +1,15 @@
foo (
// <- punctuation.bracket
bar = [
//^ punctuation.bracket
{
// <- punctuation.bracket
key: "value",
// ^ punctuation.delimiter
// ^ punctuation.delimiter
},
// <- punctuation.bracket
]
// <- punctuation.bracket
)
// <- punctuation.bracket