aboutsummaryrefslogtreecommitdiff
path: root/core/encoding
diff options
context:
space:
mode:
authorStudebakerGuy <>2026-01-07 19:24:02 -0500
committerStudebakerGuy <>2026-01-07 19:28:44 -0500
commit14d63710586ef6ca0096c170cb758ce5ae1fe6c1 (patch)
tree41e10fd218d86461aa3a42b1736ca49382c41a6d /core/encoding
parentdc37ff50368f30742f422ea15d6373df67bcb13e (diff)
Comment includiing -- at end
Comments are incorrectly including -- a the end. This was due to the comment slice being returned 2 charachters too long.
Diffstat (limited to 'core/encoding')
-rw-r--r--core/encoding/xml/tokenizer.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/encoding/xml/tokenizer.odin b/core/encoding/xml/tokenizer.odin
index 71fa0bdf5..d07f41580 100644
--- a/core/encoding/xml/tokenizer.odin
+++ b/core/encoding/xml/tokenizer.odin
@@ -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