Skip to content

Commit 891e5f1

Browse files
committed
We don't want to ignore C0 chars or spaces, because they have to trigger a hard error on some host setters.
1 parent 89def95 commit 891e5f1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/parser.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,8 @@ impl<'i> Input<'i> {
201201
Input::with_log(input, None)
202202
}
203203

204-
pub fn with_log(original_input: &'i str, vfn: Option<&dyn Fn(SyntaxViolation)>) -> Self {
205-
let input = original_input.trim_matches(c0_control_or_space);
204+
pub fn with_log(input: &'i str, vfn: Option<&dyn Fn(SyntaxViolation)>) -> Self {
206205
if let Some(vfn) = vfn {
207-
if input.len() < original_input.len() {
208-
vfn(SyntaxViolation::C0SpaceIgnored)
209-
}
210206
if input.chars().any(|c| matches!(c, '\t' | '\n' | '\r')) {
211207
vfn(SyntaxViolation::TabOrNewlineIgnored)
212208
}

0 commit comments

Comments
 (0)