summaryrefslogtreecommitdiff
path: root/rust-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'rust-mode.el')
-rw-r--r--rust-mode.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/rust-mode.el b/rust-mode.el
index 686498b..56b356d 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -83,8 +83,7 @@
(seq
"\\"
(or
- (: "U" (= 8 xdigit))
- (: "u" (= 4 xdigit))
+ (: "u{" (** 1 6 xdigit) "}")
(: "x" (= 2 xdigit))
(any "'nrt0\"\\")))
(not (any "'\\"))