ogham / Rust-BBEdit

Rust language module for BBEdit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Escaped newlines in attribute values

benw opened this issue · comments

If the value of an attribute is a string containing an escaped newline, it is misinterpreted as a premature end of the string. Then the closing double quote is misinterpreted as the start of a new string, and all following code is highlighted as the content of the string.

e.g. from rust /src/libcore/iter.rs:

#[rustc_on_unimplemented="a collection of type `{Self}` cannot be \
                          built from an iterator over elements of type `{A}`"]
pub trait FromIterator<A>: Sized {

OK, so attributes can contain newlines. That's news to me!

git pull and try again?

Fixed - Thanks!