mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 02:10:15 -04:00
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:
parent
b04ccbd0e0
commit
f0e91fd9b9
2 changed files with 5 additions and 39 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
; temporarily removed the ecma inherit due to it breaking
|
; inherits: ecma
|
||||||
|
|
||||||
"pragma" @keyword.import
|
"pragma" @keyword.import
|
||||||
|
|
||||||
; Annotations
|
; Annotations
|
||||||
|
|
@ -67,40 +68,6 @@
|
||||||
(nested_identifier
|
(nested_identifier
|
||||||
(identifier) @module))
|
(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
|
; Tokens
|
||||||
;-------
|
;-------
|
||||||
[
|
[
|
||||||
|
|
@ -118,9 +85,6 @@
|
||||||
|
|
||||||
(predefined_type) @type.builtin
|
(predefined_type) @type.builtin
|
||||||
|
|
||||||
((identifier) @type
|
|
||||||
(#lua-match? @type "^%u"))
|
|
||||||
|
|
||||||
(type_arguments
|
(type_arguments
|
||||||
"<" @punctuation.bracket
|
"<" @punctuation.bracket
|
||||||
">" @punctuation.bracket)
|
">" @punctuation.bracket)
|
||||||
|
|
@ -142,8 +106,9 @@
|
||||||
"export"
|
"export"
|
||||||
"implements"
|
"implements"
|
||||||
"interface"
|
"interface"
|
||||||
"keyof"
|
|
||||||
"namespace"
|
"namespace"
|
||||||
"type"
|
"type"
|
||||||
"override"
|
"override"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
"keyof" @keyword.operator
|
||||||
|
|
|
||||||
1
queries/qmljs/injections.scm
Normal file
1
queries/qmljs/injections.scm
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
; inherits: ecma
|
||||||
Loading…
Add table
Add a link
Reference in a new issue