]> git.eshelyaron.com Git - emacs.git/commit
Add treesit-sentence-type-regexp
authorTheodor Thornhill <theo@thornhill.no>
Sun, 15 Jan 2023 21:14:51 +0000 (22:14 +0100)
committerTheodor Thornhill <theo@thornhill.no>
Sun, 15 Jan 2023 21:18:02 +0000 (22:18 +0100)
commit70477be3e38d7bd5243e5d2f66577d8fbe8d1010
tree2b2ca9eed0706cb81de6a2a76f2042661e31da97
parent9ec60fde2e8b2b144a04d05031a83469abe7846f
Add treesit-sentence-type-regexp

* lisp/progmodes/js.el (js--treesit-sentence-type-regexp): New defvar
with sentence nodes.
(js-ts-mode): Use the new defvar for treesit-sentence-type-regexp.
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--sentence-type-regexp): New defvar with sentence
nodes.
* lisp/progmodes/typescript-ts-mode.el (typescript-ts-base-mode): Use
the new defvar for treesit-sentence-type-regexp.
(tsx-ts-mode): Extend treesit-sentence-type-regexp with jsx nodes.
lisp/progmodes/js.el
lisp/progmodes/typescript-ts-mode.el