aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2023-12-08 03:48:45 +0200
committerDmitry Gutov2023-12-08 03:48:45 +0200
commitad0f87bb4c3f432b05ec20eaccf2cef2ab7f6d61 (patch)
treeada52973da258039a345df3f7c19c8d98a34a284
parent71c5f3694fd11caee14e61de1f75306825ade96d (diff)
downloademacs-ad0f87bb4c3f432b05ec20eaccf2cef2ab7f6d61.tar.gz
emacs-ad0f87bb4c3f432b05ec20eaccf2cef2ab7f6d61.zip
(js--treesit-font-lock-settings): Remove some duplicates
* lisp/progmodes/js.el (js--treesit-font-lock-settings): Remove queries from 'function' that duplicate entries in 'definition' (one of them with a typo).
-rw-r--r--lisp/progmodes/js.el8
1 files changed, 1 insertions, 7 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index 1528c6b7de5..b3c0f18e7b5 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -3600,13 +3600,7 @@ Check if a node type is available, then return the right indent rules."
3600 function: [(identifier) @font-lock-function-call-face 3600 function: [(identifier) @font-lock-function-call-face
3601 (member_expression 3601 (member_expression
3602 property: 3602 property:
3603 (property_identifier) @font-lock-function-call-face)]) 3603 (property_identifier) @font-lock-function-call-face)]))
3604 (method_definition
3605 name: (property_identifier) @font-lock-function-name-face)
3606 (function_declaration
3607 name: (identifier) @font-lock-function-call-face)
3608 (function
3609 name: (identifier) @font-lock-function-name-face))
3610 3604
3611 :language 'javascript 3605 :language 'javascript
3612 :feature 'jsx 3606 :feature 'jsx