Comment includiing -- at end

Comments are incorrectly including -- a the end. This was due
to the comment slice being returned 2 charachters too long.
This commit is contained in:
StudebakerGuy
2026-01-07 19:24:02 -05:00
parent dc37ff5036
commit 14d6371058

View File

@@ -264,7 +264,7 @@ scan_comment :: proc(t: ^Tokenizer) -> (comment: string, err: Error) {
expect(t, .Dash)
expect(t, .Gt)
return string(t.src[offset : t.offset - 1]), .None
return string(t.src[offset : t.offset - 3]), .None
}
// Skip CDATA