]> git.eshelyaron.com Git - emacs.git/commitdiff
(js--treesit-font-lock-settings): Remove some duplicates
authorDmitry Gutov <dmitry@gutov.dev>
Fri, 8 Dec 2023 01:48:45 +0000 (03:48 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 9 Dec 2023 19:12:31 +0000 (20:12 +0100)
* lisp/progmodes/js.el (js--treesit-font-lock-settings):
Remove queries from 'function' that duplicate entries in
'definition' (one of them with a typo).

lisp/progmodes/js.el

index 5a669fdbd42a4f77825d30fb1d217bd3eac45feb..eee2f56b530fc5cb51ed6bf6bcd7152e9a571eb4 100644 (file)
@@ -3591,13 +3591,7 @@ Check if a node type is available, then return the right indent rules."
       function: [(identifier) @font-lock-function-call-face
                  (member_expression
                   property:
-                  (property_identifier) @font-lock-function-call-face)])
-     (method_definition
-      name: (property_identifier) @font-lock-function-name-face)
-     (function_declaration
-      name: (identifier) @font-lock-function-call-face)
-     (function
-      name: (identifier) @font-lock-function-name-face))
+                  (property_identifier) @font-lock-function-call-face)]))
 
    :language 'javascript
    :feature 'jsx