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.
2 parents 64a14ec + 70ce090 commit 68d2695Copy full SHA for 68d2695
compiler/parser/src/lexer.rs
@@ -154,7 +154,7 @@ pub type LexResult = Result<Spanned, LexicalError>;
154
155
#[inline]
156
pub fn make_tokenizer(source: &str) -> impl Iterator<Item = LexResult> + '_ {
157
- make_tokenizer_located(source, Location::new(0, 0))
+ make_tokenizer_located(source, Location::new(1, 0))
158
}
159
160
pub fn make_tokenizer_located(
@@ -240,8 +240,6 @@ where
240
if let Some('\u{feff}') = lxr.window[0] {
241
lxr.window.slide();
242
243
- // Start at top row (=1) left column (=1)
244
- lxr.location.reset();
245
lxr
246
247
0 commit comments