mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 04:40:08 -04:00
fix: update to pass all tests
This commit is contained in:
parent
d3d701cf2f
commit
a266dca64d
2 changed files with 81 additions and 80 deletions
|
|
@ -1,10 +1,17 @@
|
|||
(comment) @comment
|
||||
|
||||
(number) @number
|
||||
|
||||
(identifier) @variable
|
||||
|
||||
(property_identifier) @property
|
||||
|
||||
(string_literal) @string
|
||||
|
||||
(string_literal_begin) @string
|
||||
|
||||
(string_literal_continuation) @string
|
||||
|
||||
(string_literal_end) @string
|
||||
|
||||
[
|
||||
|
|
@ -15,9 +22,7 @@
|
|||
"switch"
|
||||
] @keyword.conditional
|
||||
|
||||
[
|
||||
"import"
|
||||
] @keyword.import
|
||||
"import" @keyword.import
|
||||
|
||||
[
|
||||
"for"
|
||||
|
|
@ -29,9 +34,7 @@
|
|||
(for_statement
|
||||
"in" @keyword.repeat)
|
||||
|
||||
[
|
||||
"class"
|
||||
] @keyword.type
|
||||
"class" @keyword.type
|
||||
|
||||
[
|
||||
"return"
|
||||
|
|
@ -81,9 +84,7 @@
|
|||
(true)
|
||||
] @boolean
|
||||
|
||||
[
|
||||
(void)
|
||||
] @constant.builtin
|
||||
(void) @constant.builtin
|
||||
|
||||
[
|
||||
"("
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
(#set! definition.var.scope parent))
|
||||
|
||||
(class_decl
|
||||
name: (identifier) @local.definition.class
|
||||
name: (identifier) @local.definition.type
|
||||
(#set! definition.var.scope parent))
|
||||
|
||||
; References
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue