diff options
| author | Omar Valdez <omarantoniovaldezf2@gmail.com> | 2024-08-01 01:24:40 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-01 10:24:40 +0200 |
| commit | d13f0183ba93f9b5aba7359146f294abfffff9c3 (patch) | |
| tree | b13b9da8e3140bc804eba8ea2ca8bb2a37330d72 /queries/ecma | |
| parent | bot(lockfile): update gomod, groovy, powershell, roc (diff) | |
| download | nvim-treesitter-d13f0183ba93f9b5aba7359146f294abfffff9c3.tar nvim-treesitter-d13f0183ba93f9b5aba7359146f294abfffff9c3.tar.gz nvim-treesitter-d13f0183ba93f9b5aba7359146f294abfffff9c3.tar.bz2 nvim-treesitter-d13f0183ba93f9b5aba7359146f294abfffff9c3.tar.lz nvim-treesitter-d13f0183ba93f9b5aba7359146f294abfffff9c3.tar.xz nvim-treesitter-d13f0183ba93f9b5aba7359146f294abfffff9c3.tar.zst nvim-treesitter-d13f0183ba93f9b5aba7359146f294abfffff9c3.zip | |
feat(highlights): capture wildcard imports as `@character.special`
Diffstat (limited to 'queries/ecma')
| -rw-r--r-- | queries/ecma/highlights.scm | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/queries/ecma/highlights.scm b/queries/ecma/highlights.scm index f60406272..37913f65b 100644 --- a/queries/ecma/highlights.scm +++ b/queries/ecma/highlights.scm @@ -132,11 +132,6 @@ (new_expression constructor: (identifier) @constructor) -; Variables -;---------- -(namespace_import - (identifier) @module) - ; Decorators ;---------- (decorator @@ -302,6 +297,19 @@ "}" ] @punctuation.special) @none +; Imports +;---------- +(namespace_import + "*" @character.special + (identifier) @module) + +(namespace_export + "*" @character.special + (identifier) @module) + +(export_statement + "*" @character.special) + ; Keywords ;---------- [ |
