diff options
| author | Georg Brandl <georg@python.org> | 2016-02-25 08:25:01 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2016-02-25 08:25:01 +0100 |
| commit | 01db4cb55b43300375d21aaa7a99b682e53e915a (patch) | |
| tree | ec2eff110cbbba1d92e56a0bc97e32125022855d /rust-mode.el | |
| parent | 00e5366f70d4627db82170f736712861ed8de976 (diff) | |
| download | rust-mode-01db4cb55b43300375d21aaa7a99b682e53e915a.tar.gz | |
Fix font-locking for Unicode escapes in character literals.
* There is only \u, no \U
* \u requires braces, but allows 1-6 hex digits
Diffstat (limited to 'rust-mode.el')
| -rw-r--r-- | rust-mode.el | 3 |
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 "'\\")) |
