1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-23 22:20:24 -08: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)
@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
:feature 'property