fix: update to pass all tests

This commit is contained in:
Chris Dragan 2025-12-31 19:14:40 +01:00
parent d3d701cf2f
commit a266dca64d
2 changed files with 81 additions and 80 deletions

View file

@ -1,10 +1,17 @@
(comment) @comment (comment) @comment
(number) @number (number) @number
(identifier) @variable (identifier) @variable
(property_identifier) @property (property_identifier) @property
(string_literal) @string (string_literal) @string
(string_literal_begin) @string (string_literal_begin) @string
(string_literal_continuation) @string (string_literal_continuation) @string
(string_literal_end) @string (string_literal_end) @string
[ [
@ -15,9 +22,7 @@
"switch" "switch"
] @keyword.conditional ] @keyword.conditional
[ "import" @keyword.import
"import"
] @keyword.import
[ [
"for" "for"
@ -29,9 +34,7 @@
(for_statement (for_statement
"in" @keyword.repeat) "in" @keyword.repeat)
[ "class" @keyword.type
"class"
] @keyword.type
[ [
"return" "return"
@ -81,9 +84,7 @@
(true) (true)
] @boolean ] @boolean
[ (void) @constant.builtin
(void)
] @constant.builtin
[ [
"(" "("

View file

@ -33,7 +33,7 @@
(#set! definition.var.scope parent)) (#set! definition.var.scope parent))
(class_decl (class_decl
name: (identifier) @local.definition.class name: (identifier) @local.definition.type
(#set! definition.var.scope parent)) (#set! definition.var.scope parent))
; References ; References