-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emacs mode has issues with single quotes #10190
Comments
A related problem is in the following program: fn main() {
println!("{}", '(');
} The paren in the quotations is matched with the paren closing the |
Fixing this issue is a single-line patch, but that still leaves the problem of font-locking lifetimes. They use unbalanced single quotes. |
Moved to rust-lang/rust-mode#5 |
The latest version of
rust-mode
for Emacs (20130928.1740) has issues withsingle-quoted characters, especially when that character is a
"
(doublequote). The following program executes correctly in Rust 0.8, but is font-locked
improperly in Emacs:
It treats the double quote as the beginning of a string which runs to the end of
the file. If the double quote character is escaped like so:
Then there is not a problem with an unterminated string, but the characters
inside the single quotes are not fontified at all.
Note: Both programs compile and execute successfully under Rust 0.8.
This is related to #8793
The text was updated successfully, but these errors were encountered: