; * lisp/progmodes/js.el: Fix byte-compile warning.
This commit is contained in:
parent
0aea1cf819
commit
793641a3db
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
(when (treesit-available-p)
|
||||
(treesit-query-compile 'javascript '((identifier) @id
|
||||
(property_identifier) @id))
|
||||
(property_identifier) @id)))
|
||||
"Query that captures identifier and query_identifier.")
|
||||
|
||||
(defun js--treesit-fontify-assignment-lhs (node override start end &rest _)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue