diff options
| author | Yuan Fu | 2022-12-29 11:34:28 -0800 |
|---|---|---|
| committer | Yuan Fu | 2022-12-29 11:34:51 -0800 |
| commit | 793641a3db5e14cd2eeb251d2f473b1035192560 (patch) | |
| tree | 12d0c8d081c797c61a94b2e486fe014f9242e80a /lisp | |
| parent | 0aea1cf8190aa804a0d11a67b4a3cb4b715ae82d (diff) | |
| download | emacs-793641a3db5e14cd2eeb251d2f473b1035192560.tar.gz emacs-793641a3db5e14cd2eeb251d2f473b1035192560.zip | |
; * lisp/progmodes/js.el: Fix byte-compile warning.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/js.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 4dece11d1c1..0cc673a80ff 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el | |||
| @@ -74,6 +74,8 @@ | |||
| 74 | (declare-function treesit-node-start "treesit.c") | 74 | (declare-function treesit-node-start "treesit.c") |
| 75 | (declare-function treesit-node-end "treesit.c") | 75 | (declare-function treesit-node-end "treesit.c") |
| 76 | (declare-function treesit-node-type "treesit.c") | 76 | (declare-function treesit-node-type "treesit.c") |
| 77 | (declare-function treesit-query-compile "treesit.c") | ||
| 78 | (declare-function treesit-query-capture "treesit.c") | ||
| 77 | 79 | ||
| 78 | ;;; Constants | 80 | ;;; Constants |
| 79 | 81 | ||
| @@ -3642,8 +3644,9 @@ OVERRIDE is the override flag described in | |||
| 3642 | "call_expression"))) | 3644 | "call_expression"))) |
| 3643 | 3645 | ||
| 3644 | (defvar js--treesit-lhs-identifier-query | 3646 | (defvar js--treesit-lhs-identifier-query |
| 3645 | (treesit-query-compile 'javascript '((identifier) @id | 3647 | (when (treesit-available-p) |
| 3646 | (property_identifier) @id)) | 3648 | (treesit-query-compile 'javascript '((identifier) @id |
| 3649 | (property_identifier) @id))) | ||
| 3647 | "Query that captures identifier and query_identifier.") | 3650 | "Query that captures identifier and query_identifier.") |
| 3648 | 3651 | ||
| 3649 | (defun js--treesit-fontify-assignment-lhs (node override start end &rest _) | 3652 | (defun js--treesit-fontify-assignment-lhs (node override start end &rest _) |