fix(godot_resource): improve highlights

And add a comment injection
This commit is contained in:
ObserverOfTime 2024-01-20 18:17:24 +02:00 committed by Christian Clason
parent aa0c60ca5a
commit d23192fb17
2 changed files with 26 additions and 6 deletions

View file

@ -1,7 +1,16 @@
(identifier) @type.builtin (identifier) @variable
(section
(identifier) @tag)
(section
[
"["
"]"
] @tag.delimiter)
(attribute (attribute
(identifier) @property) (identifier) @tag.attribute)
(property (property
(path) @property) (path) @property)
@ -15,13 +24,20 @@
(float) @number.float (float) @number.float
(true) @constant.builtin [
(true)
(false)
] @boolean
(false) @constant.builtin (null) @constant.builtin
(array
[
"["
"]"
] @punctuation.bracket)
[ [
"["
"]"
"(" "("
")" ")"
"{" "{"
@ -29,3 +45,5 @@
] @punctuation.bracket ] @punctuation.bracket
"=" @operator "=" @operator
(comment) @comment @spell

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))