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
thread 'main' panicked at 'assertion failed: `(left == right)`
left: `Ok(Ident("�"))`,
right: `Ok(Delim('\\'))`', examples/error.rs:6:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Correction
It is the intended output as descibed in 4.3.7. Consume an escaped code point, I just read teh spec wring
So ignore the bottom issue
Error while Tokenizing/Parsing
Input:
\
Output:
Ident("�")
Expected:
Delim('\\')
Specification
In the CSS3 spec in 4.3. Tokenizer Algorithms it is stated :
NOTE there may be formatting errors since I copy pasted the doc.
Test
Output:
Cause
In ./src/tokenizer.rs:647 the bug is that it only checks if next is a new line.
Recommendation
Insted of
tokenizer.has_newline_at(1)
make and calltokenizer.has_escape()
The text was updated successfully, but these errors were encountered: