From 48b22fa7d7f5d74f557e466de895401388450f44 Mon Sep 17 00:00:00 2001 From: John Louis Walker Date: Thu, 2 Jan 2014 15:18:26 -0500 Subject: [PATCH] Fix #10262. Add single quotes to syntax table. Single quotes are now treated like strings, fixing issues with stringy brackets. --- src/etc/emacs/rust-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/src/etc/emacs/rust-mode.el b/src/etc/emacs/rust-mode.el index bf5fec39f828d..d67a1e9ddc13b 100644 --- a/src/etc/emacs/rust-mode.el +++ b/src/etc/emacs/rust-mode.el @@ -17,6 +17,7 @@ ;; Strings (modify-syntax-entry ?\" "\"" table) + (modify-syntax-entry ?\' "\"" table) (modify-syntax-entry ?\\ "\\" table) ;; _ is a word-char