]> git.eshelyaron.com Git - emacs.git/commit
Add in new font lock features in js/ts-mode
authorTheodor Thornhill <theo@thornhill.no>
Fri, 28 Oct 2022 19:23:19 +0000 (21:23 +0200)
committerYuan Fu <casouri@gmail.com>
Fri, 28 Oct 2022 23:46:10 +0000 (16:46 -0700)
commit285f8c7cfecee0c91568cd850139c48ec3f21a28
tree97f68913db9e92f38d5680c2189b435a4e676f3f
parent25cb49ad565c764c390a411661088970db1f2b22
Add in new font lock features in js/ts-mode

We want to support font lock features on the syntactic level, not only
the decoration-level level.

New supported features are:
  - comment
  - constant
  - keyword
  - string
  - declaration
  - identifier
  - expression
  - property
  - pattern
  - jsx

* lisp/progmodes/js.el (js--treesit-font-lock-settings, js-mode): Add
in the new features.

* lisp/progmodes/ts-mode.el (ts-mode--indent-rules): Remove faulty '.'
anchor.

(ts-mode--font-lock-settings, ts-mode): Add in the new features.
lisp/progmodes/js.el
lisp/progmodes/ts-mode.el