ankurdave / color-identifiers-mode

Emacs minor mode to highlight each source code identifier uniquely based on its name
308 stars 23 forks source link

Use more lightweight cc-mode scanning function for js2-jsx-mode #95

Closed Hi-Angel closed 1 year ago

Hi-Angel commented 1 year ago

scan-identifiers isn't the best scan-fn (see also #94) as it moves not just through changed properties. Let's use the cc-mode one, which goes exclusively through face changes while searching for declared identifiers.

Fixes: https://github.com/ankurdave/color-identifiers-mode/issues/62