summaryrefslogtreecommitdiff
path: root/rust-mode.el
diff options
context:
space:
mode:
authorMicah Chalmer <micah@micahchalmer.net>2015-02-23 20:21:49 -0500
committerMicah Chalmer <micah@micahchalmer.net>2015-02-23 20:21:49 -0500
commit766bd8279b18bcbf6af0b8fea370c85414e407c4 (patch)
tree3b9d1722ac646cf59c911dd2bf5801d3e6496d7c /rust-mode.el
parent22c8cfaccf6012dd6e753a10cc5fe5c8867f5c7d (diff)
downloadrust-mode-766bd8279b18bcbf6af0b8fea370c85414e407c4.tar.gz
Parse '\\' and '\"' as char literals
Diffstat (limited to 'rust-mode.el')
-rw-r--r--rust-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust-mode.el b/rust-mode.el
index c82a484..9a6eb5f 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -423,7 +423,7 @@
;; Handle single quoted character literals:
(mapcar (lambda (re) (list re '(1 "\"") '(2 "\"")))
'("\\('\\)[^']\\('\\)"
- "\\('\\)\\\\['nrt]\\('\\)"
+ "\\('\\)\\\\['nrt\"\\]\\('\\)"
"\\('\\)\\\\x[[:xdigit:]]\\{2\\}\\('\\)"
"\\('\\)\\\\u[[:xdigit:]]\\{4\\}\\('\\)"
"\\('\\)\\\\U[[:xdigit:]]\\{8\\}\\('\\)"))