mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
Re add missing comments
This commit is contained in:
parent
1427c43cf0
commit
941e40f659
1 changed files with 7 additions and 3 deletions
|
|
@ -165,6 +165,9 @@
|
||||||
"with"
|
"with"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
|
||||||
|
; Built in identifiers:
|
||||||
|
; alone these are marked as keywords
|
||||||
[
|
[
|
||||||
"abstract"
|
"abstract"
|
||||||
"as"
|
"as"
|
||||||
|
|
@ -189,6 +192,10 @@
|
||||||
"typedef"
|
"typedef"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
; when used as an identifier:
|
||||||
|
((identifier) @variable.builtin
|
||||||
|
(#match? @variable.builtin "^(abstract|as|covariant|deferred|dynamic|export|external|factory|Function|get|implements|import|interface|library|operator|mixin|part|set|static|typedef)$"))
|
||||||
|
|
||||||
["if" "else" "switch" "default"] @conditional
|
["if" "else" "switch" "default"] @conditional
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -201,8 +208,5 @@
|
||||||
|
|
||||||
["do" "while" "continue" "for"] @repeat
|
["do" "while" "continue" "for"] @repeat
|
||||||
|
|
||||||
((identifier) @variable.builtin
|
|
||||||
(#match? @variable.builtin "^(abstract|as|covariant|deferred|dynamic|export|external|factory|Function|get|implements|import|interface|library|operator|mixin|part|set|static|typedef)$"))
|
|
||||||
|
|
||||||
; Error
|
; Error
|
||||||
(ERROR) @error
|
(ERROR) @error
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue