Skip to content

Commit 018fc44

Browse files
committed
yes, it seems to work
1 parent f42b49f commit 018fc44

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

crates/vim9-lexer/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,11 +534,11 @@ impl Lexer {
534534
}
535535
}
536536

537-
Ok(dbg!(Token {
537+
Ok(Token {
538538
kind: TokenKind::Literal,
539539
text: TokenText::Owned(line),
540540
span: self.make_span(position, self.position())?,
541-
}))
541+
})
542542
}
543543

544544
fn read_until<F>(

crates/vim9-lexer/testdata/output/vim9_lexer__test__normal.snap.new renamed to crates/vim9-lexer/testdata/output/vim9_lexer__test__normal.snap

File renamed without changes.

crates/vim9-lexer/testdata/output/vim9_lexer__test__selection.snap.new renamed to crates/vim9-lexer/testdata/output/vim9_lexer__test__selection.snap

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
source: crates/vim9-lexer/src/lib.rs
3-
assertion_line: 1122
3+
assertion_line: 1163
44
expression: snapshot_lexing(contents)
55
---
66
vim9script
@@ -85,8 +85,7 @@ def SelectText(bnr: number, range: dict<dict<number>>)
8585
^ Token(Colon, ":", (13,2)->(13,3))
8686
^^^^^^ Token(Identifier, "normal", (13,3)->(13,9))
8787
^ Token(Bang, "!", (13,9)->(13,10))
88-
^ Token(Identifier, "v", (13,11)->(13,12))
89-
Token(Comment, "", (13,15)->(13,15))
88+
^^^^ Token(Literal, "v\"_y", (13,11)->(13,15))
9089
enddef
9190
^^^^^^ Token(Identifier, "enddef", (14,0)->(14,6))
9291
Token(EndOfLine, "\n", (14,6)->(14,6))

0 commit comments

Comments
 (0)