]> 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)
committerDmitry Gutov <dmitry@gutov.dev>
Fri, 8 Dec 2023 01:48:45 +0000 (03:48 +0200)
* 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 1528c6b7de5b8dabbd3ce8e314fe726a2de5f573..b3c0f18e7b5e9526fd31cffd0fb3f1a5bcb04b3a 100644 (file)
@@ -3600,13 +3600,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