]> git.eshelyaron.com Git - emacs.git/commit
typescript-ts-mode, tsx-ts-mode: Fix syntax properties for regexp and jsx
authorJostein Kjønigsen <jostein@kjonigsen.net>
Tue, 5 Sep 2023 19:29:27 +0000 (21:29 +0200)
committerDmitry Gutov <dmitry@gutov.dev>
Tue, 12 Sep 2023 22:54:45 +0000 (01:54 +0300)
commit1fb2fb501f34d7c08462209a798e65904ea7b8da
treefe985a69c2173f95445a352e97668d9980ba610a
parent946b395e7e1cd3685ca094531d8dbd1b89b0a7e6
typescript-ts-mode, tsx-ts-mode: Fix syntax properties for regexp and jsx

Propertize regexps as strings and JSX elements as generic strings.

* lisp/progmodes/typescript-ts-mode.el (ts-ts--s-p-query)
(tsx-ts--s-p-query): New variables.
(ts-ts--syntax-propertize, tsx-ts--syntax-propertize)
(ts-ts--syntax-propertize-captures): New functions.
(typescript-ts-mode, tsx-ts-mode): Use them (bug#65470).
lisp/progmodes/typescript-ts-mode.el