We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89def95 commit 891e5f1Copy full SHA for 891e5f1
src/parser.rs
@@ -201,12 +201,8 @@ impl<'i> Input<'i> {
201
Input::with_log(input, None)
202
}
203
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);
+ pub fn with_log(input: &'i str, vfn: Option<&dyn Fn(SyntaxViolation)>) -> Self {
206
if let Some(vfn) = vfn {
207
- if input.len() < original_input.len() {
208
- vfn(SyntaxViolation::C0SpaceIgnored)
209
- }
210
if input.chars().any(|c| matches!(c, '\t' | '\n' | '\r')) {
211
vfn(SyntaxViolation::TabOrNewlineIgnored)
212
0 commit comments