diff options
author | Jostein Kjønigsen <jostein@kjonigsen.net> | 2023-01-26 20:32:18 +0100 |
---|---|---|
committer | Theodor Thornhill <theo@thornhill.no> | 2023-01-27 13:50:13 +0100 |
commit | 00629c039643a0471143205c70e8a078fc3a9d86 (patch) | |
tree | 09b9cdb3e763351a73f313c636c31dc2f704a62c /lisp/emacs-lisp/comp-cstr.el | |
parent | fd145499bbd7650d915c6e5e1ac95fd89738a6b9 (diff) | |
download | emacs-00629c039643a0471143205c70e8a078fc3a9d86.tar.gz emacs-00629c039643a0471143205c70e8a078fc3a9d86.tar.bz2 emacs-00629c039643a0471143205c70e8a078fc3a9d86.zip |
Fix errors in fontification of JavaScript import-statements (bug#61083)
Currently js-ts-mode handles imports with aliases incorrectly. To be
consistent with how we otherwise do things, we should only highlight
the variable which is new and/or introduced, in this case "someAlias".
Attached is a patch which fontifies import-declarations somewhat more
correctly.
The following cases have been tested and all fontify properly:
import gnu from "fsf"; // highlights gnu
import { gnu2 } from "fsf2"; // highlights gnu2
import { gnu as gnu3 } from "fsf3"; // highlights gnu3
import * as gnu4 from "fsf4"; // highlights gnu4
* lisp/progmodes/js.el (js--treesit-font-lock-settings): Add new
import_clause rules that adhere to the comment above.
Diffstat (limited to 'lisp/emacs-lisp/comp-cstr.el')
0 files changed, 0 insertions, 0 deletions