AK: Cache all the line positions in LineTrackingLexer

Also updates a LibWeb text test that used to report the wrong line
number.
This commit is contained in:
Ali Mohammad Pur 2024-10-10 09:58:31 +02:00 committed by Tim Ledbetter
commit 02b50d463b
Notes: github-actions[bot] 2024-10-10 22:54:58 +00:00
4 changed files with 42 additions and 31 deletions

View file

@ -1,3 +1,3 @@
Got load event
[object HTMLDocument]
Failed to parse XML document: Expected '>' at line: 1, col: 20 (offset 59)
Failed to parse XML document: Expected '>' at line: 2, col: 20 (offset 59)