Skip to content

Commit 48b22fa

Browse files
author
John Louis Walker
committed
Fix rust-lang#10262. Add single quotes to syntax table.
Single quotes are now treated like strings, fixing issues with stringy brackets.
1 parent 8271ba8 commit 48b22fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/etc/emacs/rust-mode.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
;; Strings
1919
(modify-syntax-entry ?\" "\"" table)
20+
(modify-syntax-entry ?\' "\"" table)
2021
(modify-syntax-entry ?\\ "\\" table)
2122

2223
;; _ is a word-char

0 commit comments

Comments
 (0)