Skip to content

Commit 6a37edd

Browse files
committed
fixed issue 72
1 parent 2df66e4 commit 6a37edd

File tree

6 files changed

+1031
-1
lines changed

6 files changed

+1031
-1
lines changed

src/html/tokenizer.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1493,6 +1493,7 @@ export class Tokenizer {
14931493
this.appendTokenValue(HYPHEN_MINUS, "HTMLComment")
14941494

14951495
if (cp !== HYPHEN_MINUS) {
1496+
this.appendTokenValue(HYPHEN_MINUS, "HTMLComment")
14961497
return this.reconsumeAs("COMMENT")
14971498
}
14981499
cp = this.consumeNextCodePoint()

test/fixtures/ast/comments-2/ast.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@
979979
"column": 15
980980
}
981981
},
982-
"value": " - "
982+
"value": " -- "
983983
},
984984
{
985985
"type": "HTMLComment",

0 commit comments

Comments
 (0)