1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

Highlight identifier in import statements in js-ts-mode

Follow-up on bug#60689.  This commit just copied the change in
e385c099b8 to js-ts-mode.

* lisp/progmodes/js.el:
(js--treesit-font-lock-settings): Add import query.
This commit is contained in:
Yuan Fu 2023-01-09 21:31:38 -08:00
parent aa9df1260c
commit 8377ed5298
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -3542,7 +3542,10 @@ This function is intended for use in `after-change-functions'."
(identifier) (identifier)
(identifier) (identifier)
@font-lock-function-name-face) @font-lock-function-name-face)
value: (array (number) (function)))) value: (array (number) (function)))
(import_clause (identifier) @font-lock-variable-name-face)
(import_clause (named_imports (import_specifier (identifier))
@font-lock-variable-name-face)))
:language 'javascript :language 'javascript
:feature 'property :feature 'property