1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00

; * lisp/progmodes/js.el: Fix byte-compile warning.

This commit is contained in:
Yuan Fu 2022-12-29 11:34:28 -08:00
parent 0aea1cf819
commit 793641a3db
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -74,6 +74,8 @@
(declare-function treesit-node-start "treesit.c")
(declare-function treesit-node-end "treesit.c")
(declare-function treesit-node-type "treesit.c")
(declare-function treesit-query-compile "treesit.c")
(declare-function treesit-query-capture "treesit.c")
;;; Constants
@ -3642,8 +3644,9 @@ OVERRIDE is the override flag described in
"call_expression")))
(defvar js--treesit-lhs-identifier-query
(treesit-query-compile 'javascript '((identifier) @id
(property_identifier) @id))
(when (treesit-available-p)
(treesit-query-compile 'javascript '((identifier) @id
(property_identifier) @id)))
"Query that captures identifier and query_identifier.")
(defun js--treesit-fontify-assignment-lhs (node override start end &rest _)