diff options
| author | Nathan Smith <nathan@nathansmith.io> | 2020-08-17 19:30:04 -0700 |
|---|---|---|
| committer | Nathan Smith <nathan@nathansmith.io> | 2020-08-17 19:30:04 -0700 |
| commit | 05798284ff3dfec983906a7e2adea91b20727d42 (patch) | |
| tree | 6ff4a3d2ee7cef0432c8f7dfd1583a9d087a5c99 | |
| parent | Python: update highlights (diff) | |
| download | nvim-treesitter-05798284ff3dfec983906a7e2adea91b20727d42.tar nvim-treesitter-05798284ff3dfec983906a7e2adea91b20727d42.tar.gz nvim-treesitter-05798284ff3dfec983906a7e2adea91b20727d42.tar.bz2 nvim-treesitter-05798284ff3dfec983906a7e2adea91b20727d42.tar.lz nvim-treesitter-05798284ff3dfec983906a7e2adea91b20727d42.tar.xz nvim-treesitter-05798284ff3dfec983906a7e2adea91b20727d42.tar.zst nvim-treesitter-05798284ff3dfec983906a7e2adea91b20727d42.zip | |
@function.method -> @method
| -rw-r--r-- | queries/javascript/highlights.scm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/queries/javascript/highlights.scm b/queries/javascript/highlights.scm index fe9b3a28c..19ebd4484 100644 --- a/queries/javascript/highlights.scm +++ b/queries/javascript/highlights.scm @@ -35,22 +35,22 @@ (function_declaration name: (identifier) @function) (method_definition - name: (property_identifier) @function.method) + name: (property_identifier) @method) (pair - key: (property_identifier) @function.method + key: (property_identifier) @method value: (function)) (pair - key: (property_identifier) @function.method + key: (property_identifier) @method value: (arrow_function)) (assignment_expression left: (member_expression - property: (property_identifier) @function.method) + property: (property_identifier) @method) right: (arrow_function)) (assignment_expression left: (member_expression - property: (property_identifier) @function.method) + property: (property_identifier) @method) right: (function)) (variable_declarator @@ -75,7 +75,7 @@ (call_expression function: (member_expression - property: (property_identifier) @function.method)) + property: (property_identifier) @method)) ; Variables ;---------- |
