handle backslash as last character in property
This commit is contained in:
parent
6f39921665
commit
de6b823440
@ -393,7 +393,7 @@ pub(crate) fn eat_ident<I: Iterator<Item = Token>>(
|
||||
toks.next();
|
||||
}
|
||||
if n.is_empty() {
|
||||
let c = toks.next().unwrap().kind;
|
||||
let c = toks.next().ok_or("expected \"{\".")?.kind;
|
||||
if (c == '-' && !s.is_empty()) || c.is_ascii_alphabetic() {
|
||||
s.push(c);
|
||||
} else {
|
||||
|
@ -27,3 +27,12 @@ error!(
|
||||
question_mark_inside_value,
|
||||
"a {foo: bar?}", "Error: expected \";\"."
|
||||
);
|
||||
// TODO: special parsing rules for variable names
|
||||
// error!(
|
||||
// interpolation_in_variable_declaration,
|
||||
// "$base-#{lor}: #036;", "Error: expected \":\"."
|
||||
// );
|
||||
error!(
|
||||
backslash_as_last_character,
|
||||
"a {colo\\: red;}", "Error: expected \"{\"."
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user