diff options
| author | Phạm Huy Hoàng <hoangtun0810@gmail.com> | 2024-01-21 22:05:44 +0900 |
|---|---|---|
| committer | Phạm Huy Hoàng <hoangtun0810@gmail.com> | 2024-01-21 23:55:02 +0900 |
| commit | 77e298e4de607d69aa7f37dc6dcba6aee131ac7f (patch) | |
| tree | e3342d2c5b5244c13ee40c1ccc080192335ec277 /queries/ecma | |
| parent | fix(format-scripts): remove parens if possible (diff) | |
| download | nvim-treesitter-77e298e4de607d69aa7f37dc6dcba6aee131ac7f.tar nvim-treesitter-77e298e4de607d69aa7f37dc6dcba6aee131ac7f.tar.gz nvim-treesitter-77e298e4de607d69aa7f37dc6dcba6aee131ac7f.tar.bz2 nvim-treesitter-77e298e4de607d69aa7f37dc6dcba6aee131ac7f.tar.lz nvim-treesitter-77e298e4de607d69aa7f37dc6dcba6aee131ac7f.tar.xz nvim-treesitter-77e298e4de607d69aa7f37dc6dcba6aee131ac7f.tar.zst nvim-treesitter-77e298e4de607d69aa7f37dc6dcba6aee131ac7f.zip | |
chore: format queries
Diffstat (limited to 'queries/ecma')
| -rw-r--r-- | queries/ecma/highlights.scm | 4 | ||||
| -rw-r--r-- | queries/ecma/injections.scm | 3 | ||||
| -rw-r--r-- | queries/ecma/locals.scm | 4 |
3 files changed, 5 insertions, 6 deletions
diff --git a/queries/ecma/highlights.scm b/queries/ecma/highlights.scm index 8e62fd1f6..4156222cb 100644 --- a/queries/ecma/highlights.scm +++ b/queries/ecma/highlights.scm @@ -283,11 +283,11 @@ "}" ] @punctuation.bracket -((template_substitution +(template_substitution [ "${" "}" - ] @punctuation.special) @none) + ] @punctuation.special) @none ; Keywords ;---------- diff --git a/queries/ecma/injections.scm b/queries/ecma/injections.scm index 9421d8113..51eb22a7e 100644 --- a/queries/ecma/injections.scm +++ b/queries/ecma/injections.scm @@ -7,8 +7,7 @@ ; html(`...`), html`...`, sql(...) etc (call_expression - function: - ((identifier) @injection.language) + function: (identifier) @injection.language arguments: [ (arguments diff --git a/queries/ecma/locals.scm b/queries/ecma/locals.scm index 54da79335..24297940c 100644 --- a/queries/ecma/locals.scm +++ b/queries/ecma/locals.scm @@ -28,11 +28,11 @@ (identifier) @local.definition.import) (function_declaration - ((identifier) @local.definition.function) + (identifier) @local.definition.function (#set! definition.var.scope parent)) (method_definition - ((property_identifier) @local.definition.function) + (property_identifier) @local.definition.function (#set! definition.var.scope parent)) ; References |
