]> git.eshelyaron.com Git - emacs.git/commit
Add more granular features in font-locking
authorTheodor Thornhill <theo@thornhill.no>
Mon, 17 Oct 2022 10:49:19 +0000 (12:49 +0200)
committerYuan Fu <casouri@gmail.com>
Tue, 18 Oct 2022 20:42:42 +0000 (13:42 -0700)
commitc4ad36cd2daab764649db451c4a3f1a35c5f519a
tree8c1a07c64dfa059e3a6a1ffa84906a2066074f9c
parent85073998cb47567cb30fb41f12135bd799ad2588
Add more granular features in font-locking

There is now support for three font-locking levels, 'minimal',
'moderate' and 'full'.  The richest experience is to be expected from
the 'full', and all levels are enabled by default.

* lisp/progmodes/js.el (js--treesit-font-lock-settings): New defvar
renamed from 'js--treesit-settings'.

(js--treesit-font-lock-settings): New defvar renamed from
'js--json-treesit-settings'.

* lisp/progmodes/ts-mode.el (ts-mode--font-lock-settings): New defvar
renamed from 'ts-mode--settings'.
lisp/progmodes/js.el
lisp/progmodes/ts-mode.el