diff options
| author | Ananda Umamil <zweimach@zweimach.org> | 2024-02-09 20:42:08 +0700 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-02-10 10:02:27 +0100 |
| commit | baf4581159e003d96baef9289fde7e72d7ecaeb5 (patch) | |
| tree | 2962a94a0e257c82d8575194e5e89135d78c4986 | |
| parent | Update parsers: arduino, bash, beancount, cpp, dtd, luadoc, slint, wing, xml (diff) | |
| download | nvim-treesitter-baf4581159e003d96baef9289fde7e72d7ecaeb5.tar nvim-treesitter-baf4581159e003d96baef9289fde7e72d7ecaeb5.tar.gz nvim-treesitter-baf4581159e003d96baef9289fde7e72d7ecaeb5.tar.bz2 nvim-treesitter-baf4581159e003d96baef9289fde7e72d7ecaeb5.tar.lz nvim-treesitter-baf4581159e003d96baef9289fde7e72d7ecaeb5.tar.xz nvim-treesitter-baf4581159e003d96baef9289fde7e72d7ecaeb5.tar.zst nvim-treesitter-baf4581159e003d96baef9289fde7e72d7ecaeb5.zip | |
feat(ecma): highlight decorator and destructuring
| -rw-r--r-- | queries/ecma/highlights.scm | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/queries/ecma/highlights.scm b/queries/ecma/highlights.scm index f5f2d5614..233b20e00 100644 --- a/queries/ecma/highlights.scm +++ b/queries/ecma/highlights.scm @@ -12,10 +12,12 @@ (private_property_identifier) @variable.member -(variable_declarator - name: - (object_pattern - (shorthand_property_identifier_pattern))) @variable +(object_pattern + (shorthand_property_identifier_pattern) @variable) + +(object_pattern + (object_assignment_pattern + (shorthand_property_identifier_pattern) @variable)) ; Special identifiers ;-------------------- @@ -138,6 +140,17 @@ (call_expression (identifier) @attribute)) +(decorator + "@" @attribute + (member_expression + (property_identifier) @attribute)) + +(decorator + "@" @attribute + (call_expression + (member_expression + (property_identifier) @attribute))) + ; Literals ;--------- [ |
