diff options
| author | Steven Sojka <steelsojka@users.noreply.github.com> | 2020-08-18 06:53:27 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-18 06:53:27 -0500 |
| commit | 761faf23b7982227d6610983739644c22cc1cd5d (patch) | |
| tree | 6ff4a3d2ee7cef0432c8f7dfd1583a9d087a5c99 /queries/javascript | |
| parent | Python: update highlights (diff) | |
| parent | @function.method -> @method (diff) | |
| download | nvim-treesitter-761faf23b7982227d6610983739644c22cc1cd5d.tar nvim-treesitter-761faf23b7982227d6610983739644c22cc1cd5d.tar.gz nvim-treesitter-761faf23b7982227d6610983739644c22cc1cd5d.tar.bz2 nvim-treesitter-761faf23b7982227d6610983739644c22cc1cd5d.tar.lz nvim-treesitter-761faf23b7982227d6610983739644c22cc1cd5d.tar.xz nvim-treesitter-761faf23b7982227d6610983739644c22cc1cd5d.tar.zst nvim-treesitter-761faf23b7982227d6610983739644c22cc1cd5d.zip | |
Merge pull request #323 from nathunsmitty/master
Rename @function.method to @method
Diffstat (limited to 'queries/javascript')
| -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 ;---------- |
