Skip to content

Commit 457a78a

Browse files
authored
Fix tokenizer EOF error positions (#144)
1 parent 8fbcde0 commit 457a78a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: tokenizer/test3.test

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"input":"",
1111
"output":[],
1212
"errors":[
13-
{ "code": "eof-in-cdata", "line": 1, "col": 2 }
13+
{ "code": "eof-in-cdata", "line": 1, "col": 1 }
1414
]},
1515

1616
{"description":"\\u0009",
@@ -36,7 +36,7 @@
3636
"input":"\u000A",
3737
"output":[["Character", "\u000A"]],
3838
"errors":[
39-
{ "code": "eof-in-cdata", "line": 1, "col": 2 }
39+
{ "code": "eof-in-cdata", "line": 2, "col": 1 }
4040
]},
4141

4242
{"description":"\\u000B",
@@ -443,7 +443,7 @@
443443
"input":";\uDBC0\uDC00",
444444
"output":[["Character", ";\uDBC0\uDC00"]],
445445
"errors":[
446-
{ "code": "eof-in-cdata", "line": 1, "col": 3 }
446+
{ "code": "eof-in-cdata", "line": 1, "col": 4 }
447447
]},
448448

449449
{"description":"<",
@@ -1325,28 +1325,28 @@
13251325
"input":"<!----! >",
13261326
"output":[["Comment", "--! >"]],
13271327
"errors":[
1328-
{ "code": "eof-in-comment", "line": 1, "col": 9 }
1328+
{ "code": "eof-in-comment", "line": 1, "col": 10 }
13291329
]},
13301330

13311331
{"description":"<!----!LF>",
13321332
"input":"<!----!\n>",
13331333
"output":[["Comment", "--!\n>"]],
13341334
"errors":[
1335-
{ "code": "eof-in-comment", "line": 1, "col": 9 }
1335+
{ "code": "eof-in-comment", "line": 2, "col": 2 }
13361336
]},
13371337

13381338
{"description":"<!----!CR>",
13391339
"input":"<!----!\r>",
13401340
"output":[["Comment", "--!\n>"]],
13411341
"errors":[
1342-
{ "code": "eof-in-comment", "line": 1, "col": 9 }
1342+
{ "code": "eof-in-comment", "line": 2, "col": 2 }
13431343
]},
13441344

13451345
{"description":"<!----!CRLF>",
13461346
"input":"<!----!\r\n>",
13471347
"output":[["Comment", "--!\n>"]],
13481348
"errors":[
1349-
{ "code": "eof-in-comment", "line": 1, "col": 9 }
1349+
{ "code": "eof-in-comment", "line": 2, "col": 2 }
13501350
]},
13511351

13521352
{"description":"<!----!a",
@@ -11227,7 +11227,7 @@
1122711227
"input":"\uDBC0\uDC00",
1122811228
"output":[["Character", "\uDBC0\uDC00"]],
1122911229
"errors":[
11230-
{ "code": "eof-in-cdata", "line": 1, "col": 2 }
11230+
{ "code": "eof-in-cdata", "line": 1, "col": 3 }
1123111231
]}
1123211232

1123311233
]}

0 commit comments

Comments
 (0)