Skip to content

Commit 7be3ddb

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 a4b56c0 commit 7be3ddb

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
@@ -183,12 +183,8 @@ impl<'i> Input<'i> {
183183
Input::with_log(input, None)
184184
}
185185

186-
pub fn with_log(original_input: &'i str, vfn: Option<&dyn Fn(SyntaxViolation)>) -> Self {
187-
let input = original_input.trim_matches(c0_control_or_space);
186+
pub fn with_log(input: &'i str, vfn: Option<&dyn Fn(SyntaxViolation)>) -> Self {
188187
if let Some(vfn) = vfn {
189-
if input.len() < original_input.len() {
190-
vfn(SyntaxViolation::C0SpaceIgnored)
191-
}
192188
if input.chars().any(|c| matches!(c, '\t' | '\n' | '\r')) {
193189
vfn(SyntaxViolation::TabOrNewlineIgnored)
194190
}

0 commit comments

Comments
 (0)