From 568e96086237345f45949a9c2ceea13f15abd871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=99=D0=BE=D1=80=D0=B4=D0=B0=D0=BD=20=D0=9C=D0=B8=D0=BB?= =?UTF-8?q?=D0=B0=D0=B4=D0=B8=D0=BD=D0=BE=D0=B2?= Date: Thu, 25 May 2023 00:43:10 +0300 Subject: [PATCH] Fix apostrophe handling in rust-ts-mode * lisp/progmodes/rust-ts-mode.el (rust-ts-mode--syntax-table) Update the syntax table to treat the apostrophe character as defining a string, similar to c-ts-mode. This fix addresses issues with functions that rely on scan-lists. --- lisp/progmodes/rust-ts-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/rust-ts-mode.el b/lisp/progmodes/rust-ts-mode.el index be06acde3e3..ce2828541a6 100644 --- a/lisp/progmodes/rust-ts-mode.el +++ b/lisp/progmodes/rust-ts-mode.el @@ -64,6 +64,7 @@ rust-ts-mode--syntax-table (modify-syntax-entry ?> "." table) (modify-syntax-entry ?/ ". 124b" table) (modify-syntax-entry ?* ". 23" table) + (modify-syntax-entry ?\' "\"" table) (modify-syntax-entry ?\n "> b" table) (modify-syntax-entry ?\^m "> b" table) table) -- 2.40.1