]> git.eshelyaron.com Git - emacs.git/commit
Utilize new font-lock faces for more tree-sitter modes (Bug#59397)
authorRandy Taylor <dev@rjt.dev>
Sun, 20 Nov 2022 03:30:13 +0000 (22:30 -0500)
committerYuan Fu <casouri@gmail.com>
Wed, 23 Nov 2022 03:07:26 +0000 (19:07 -0800)
commit0ed313642227afdeccf48057eea458edca9d2962
tree610cca8b1e6caa592f804e943efe7336fa851e77
parentefe599df3127bea4c6251ce20513945fdd947c26
Utilize new font-lock faces for more tree-sitter modes (Bug#59397)

* lisp/progmodes/java-ts-mode.el (java-ts-mode--font-lock-settings):
Use font-lock-number-face.
(java-ts-mode): Alphabetize features.
* lisp/progmodes/js.el (js--treesit-operators): Define operators.
(js--treesit-font-lock-settings): Use bracket, delimiter,
escape-sequence, property, number, and operator font-lock faces.
(js-ts-mode): Add them to the feature list and alphabetize.
* lisp/progmodes/json-ts-mode.el (json-ts-mode--font-lock-settings):
Use bracket, delimiter, escape-sequence, and number faces.  Remove
unused features.
(json-ts-mode): Add them to the feature list and alphabetize.
* lisp/progmodes/sh-script.el (sh-mode--treesit-settings): Use
bracket, delimiter, number, misc-punctuation, and operator font-lock
faces.
(sh-mode--treesit-operators): Remove ; and ;; from list.
(bash-ts-mode): Add them to the feature list and alphabetize.
* lisp/progmodes/ts-mode.el (ts-mode--operators): Define operators.
(ts-mode--font-lock-settings): Use escape-sequence, number, and
operator font-lock faces.
(ts-mode): Add them to the feature list and alphabetize.
lisp/progmodes/java-ts-mode.el
lisp/progmodes/js.el
lisp/progmodes/json-ts-mode.el
lisp/progmodes/sh-script.el
lisp/progmodes/ts-mode.el