mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
Improve Vala syntax highlight
This commit is contained in:
parent
391bdccdf0
commit
ad1bc3577c
1 changed files with 6 additions and 5 deletions
|
|
@ -28,13 +28,10 @@
|
||||||
"}"
|
"}"
|
||||||
"("
|
"("
|
||||||
")"
|
")"
|
||||||
"["
|
|
||||||
"]"
|
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
|
|
||||||
[
|
[
|
||||||
";"
|
";"
|
||||||
":"
|
|
||||||
"."
|
"."
|
||||||
","
|
","
|
||||||
"->"
|
"->"
|
||||||
|
|
@ -74,6 +71,10 @@
|
||||||
"owned"
|
"owned"
|
||||||
"throws"
|
"throws"
|
||||||
"delete"
|
"delete"
|
||||||
|
"#if"
|
||||||
|
"#elif"
|
||||||
|
(preproc_else)
|
||||||
|
(preproc_endif)
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
"throw" @exception
|
"throw" @exception
|
||||||
|
|
@ -128,7 +129,6 @@
|
||||||
"&="
|
"&="
|
||||||
"^="
|
"^="
|
||||||
"??"
|
"??"
|
||||||
"="
|
|
||||||
] @operator
|
] @operator
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -206,7 +206,7 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
(class_constructor_definition
|
(class_constructor_definition
|
||||||
[
|
name: [
|
||||||
(_)
|
(_)
|
||||||
(namespaced_identifier (_) @constructor .)
|
(namespaced_identifier (_) @constructor .)
|
||||||
] @constructor
|
] @constructor
|
||||||
|
|
@ -229,6 +229,7 @@
|
||||||
; Strings and escape sequences
|
; Strings and escape sequences
|
||||||
|
|
||||||
(string_literal) @string
|
(string_literal) @string
|
||||||
|
(verbatim) @string
|
||||||
(escape_sequence) @string.escape
|
(escape_sequence) @string.escape
|
||||||
|
|
||||||
(string_template
|
(string_template
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue