diff options
| author | Riley Bruins <ribru17@hotmail.com> | 2024-04-23 20:29:59 -0700 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-04-25 08:23:59 +0200 |
| commit | f0e91fd9b9dcf111dee299b3f91366585b30d2a9 (patch) | |
| tree | f6b766f1d3d4b86257a4c2c480b2c62ebed9145e /queries/qmljs | |
| parent | bot(lockfile): update astro, dart, gleam, liquidsoap, tlaplus (diff) | |
| download | nvim-treesitter-f0e91fd9b9dcf111dee299b3f91366585b30d2a9.tar nvim-treesitter-f0e91fd9b9dcf111dee299b3f91366585b30d2a9.tar.gz nvim-treesitter-f0e91fd9b9dcf111dee299b3f91366585b30d2a9.tar.bz2 nvim-treesitter-f0e91fd9b9dcf111dee299b3f91366585b30d2a9.tar.lz nvim-treesitter-f0e91fd9b9dcf111dee299b3f91366585b30d2a9.tar.xz nvim-treesitter-f0e91fd9b9dcf111dee299b3f91366585b30d2a9.tar.zst nvim-treesitter-f0e91fd9b9dcf111dee299b3f91366585b30d2a9.zip | |
feat(qml): add back `ecma` inheritance
Fixed after the grammar dependencies were updated. This time inheritance
is given to the injections queries also.
Diffstat (limited to 'queries/qmljs')
| -rw-r--r-- | queries/qmljs/highlights.scm | 43 | ||||
| -rw-r--r-- | queries/qmljs/injections.scm | 1 |
2 files changed, 5 insertions, 39 deletions
diff --git a/queries/qmljs/highlights.scm b/queries/qmljs/highlights.scm index d543074be..cef6639de 100644 --- a/queries/qmljs/highlights.scm +++ b/queries/qmljs/highlights.scm @@ -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 diff --git a/queries/qmljs/injections.scm b/queries/qmljs/injections.scm new file mode 100644 index 000000000..04328f099 --- /dev/null +++ b/queries/qmljs/injections.scm @@ -0,0 +1 @@ +; inherits: ecma |
