Add punctuations highlighting
This commit is contained in:
parent
a9ec312792
commit
42bef1d592
|
@ -9,6 +9,22 @@
|
|||
(integer_literal ("-") @operator)
|
||||
; }}}
|
||||
|
||||
; Punctuation {{{
|
||||
[
|
||||
","
|
||||
":"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
; }}}
|
||||
|
||||
; Literal {{{
|
||||
(boolean_literal) @boolean
|
||||
|
||||
|
|
15
test/highlight/punctuation.bp
Normal file
15
test/highlight/punctuation.bp
Normal 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
|
Loading…
Reference in a new issue