From 05ef120808ca5fde632f9a18c971810866e4b5b5 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Fri, 8 Dec 2023 03:48:45 +0200 Subject: [PATCH] (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). --- lisp/progmodes/js.el | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 5a669fdbd42..eee2f56b530 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el @@ -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 -- 2.39.2