feat(qml): add back ecma inheritance

Fixed after the grammar dependencies were updated. This time inheritance
is given to the injections queries also.
This commit is contained in:
Riley Bruins 2024-04-23 20:29:59 -07:00 committed by Christian Clason
parent b04ccbd0e0
commit f0e91fd9b9
2 changed files with 5 additions and 39 deletions

View file

@ -1,4 +1,5 @@
; temporarily removed the ecma inherit due to it breaking
; inherits: ecma
"pragma" @keyword.import
; Annotations
@ -67,40 +68,6 @@
(nested_identifier
(identifier) @module))
; Properties
;-----------
(property_identifier) @property
; function
(call_expression
function: (member_expression
object: (identifier) @variable
property: (property_identifier) @function))
; js
; Literals
;---------
[
(true)
(false)
] @boolean
[
(null)
(undefined)
] @constant.builtin
(comment) @comment @spell
[
(string)
(template_string)
] @string
(regex) @string.regexp
(number) @number
; Tokens
;-------
[
@ -118,9 +85,6 @@
(predefined_type) @type.builtin
((identifier) @type
(#lua-match? @type "^%u"))
(type_arguments
"<" @punctuation.bracket
">" @punctuation.bracket)
@ -142,8 +106,9 @@
"export"
"implements"
"interface"
"keyof"
"namespace"
"type"
"override"
] @keyword
"keyof" @keyword.operator

View file

@ -0,0 +1 @@
; inherits: ecma