Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions queries/gdscript/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
(set_body "set" @keyword)
(get_body "get" @keyword)
(static_keyword) @type.qualifier
(tool_statement) @keyword
(breakpoint_statement) @debug
(inferred_type) @operator
[(true) (false)] @boolean
Expand Down Expand Up @@ -59,12 +58,12 @@
; We'll use @property since that's the term Godot uses.
; But, should (source (variable_statement (name))) be @property, too? Since a
; script file is a class in gdscript.
(class_definition
(body (variable_statement (name) @property)))
;(class_definition
; (body (variable_statement (name) @property)))

; Same question but for methods?
(class_definition
(body (function_definition (name) @method)))
;(class_definition
; (body (function_definition (name) @method)))

(attribute_call (identifier) @method.call)
(attribute (_) (identifier) @property)
Expand Down Expand Up @@ -188,7 +187,7 @@
"export_flags_3d_physics" "export_flags_3d_render" "export_global_dir"
"export_global_file" "export_group" "export_multiline" "export_node_path"
"export_placeholder" "export_range" "export_subgroup" "icon" "onready"
"rpc" "tool" "warning_ignore"
"rpc" "warning_ignore"
))

;; Builtin Types
Expand Down
Loading