]> git.eshelyaron.com Git - emacs.git/commit
Fix <> syntax in rust-ts-mode
authorYuan Fu <casouri@gmail.com>
Fri, 27 Jan 2023 01:49:45 +0000 (17:49 -0800)
committerYuan Fu <casouri@gmail.com>
Sun, 29 Jan 2023 08:12:56 +0000 (00:12 -0800)
commit1c3ca3bb649b7e812a84b4a559463462d4357080
tree933415aecabc4d6cd662d3f7463d408c53f26061
parent56e8607dc99b90c43f82001cbf073e58a4698298
Fix <> syntax in rust-ts-mode

Similar to bug#60351, the angle brackets in rust-ts-mode are not
recognized as pairs when they should be.  This change copies the
function used by c++-ts-mode and adapts it to rust-ts-mode.

* lisp/progmodes/rust-ts-mode.el:
(rust-ts-mode--syntax-propertize): New function.
(rust-ts-mode): Set up syntax-propertize-function.
lisp/progmodes/rust-ts-mode.el