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 a4b56c0 commit 7be3ddbCopy full SHA for 7be3ddb
src/parser.rs
@@ -183,12 +183,8 @@ impl<'i> Input<'i> {
183
Input::with_log(input, None)
184
}
185
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);
+ pub fn with_log(input: &'i str, vfn: Option<&dyn Fn(SyntaxViolation)>) -> Self {
188
if let Some(vfn) = vfn {
189
- if input.len() < original_input.len() {
190
- vfn(SyntaxViolation::C0SpaceIgnored)
191
- }
192
if input.chars().any(|c| matches!(c, '\t' | '\n' | '\r')) {
193
vfn(SyntaxViolation::TabOrNewlineIgnored)
194
0 commit comments