You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't accept unicode escapes without curly braces.
At least with Rust 1.5, putting a 4-digit Unicode escape into a string literal produces an error message:
src/cells.rs:81:19: 81:21 error: incorrect unicode escape sequence
src/cells.rs:81 (1, "e\u0301"),
^~
src/cells.rs:81:19: 81:21 help: format of unicode escape sequences is `\u{…}`
src/cells.rs:81 (1, "e\u0301"),
...and a six-digit Unicode escape (`\Uxxxxxx`) just produces:
src/cells.rs:81:20: 81:21 error: unknown character escape: U
The only supported Unicode escape sequence is `\u` followed by hex digits in curly braces, so that's the only format the Vim syntax highlighting should accept.
0 commit comments