aboutsummaryrefslogtreecommitdiff
path: root/core/encoding
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-04-19 23:44:02 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2025-04-19 23:44:02 +0200
commitab5ca087a7a64e2085edd955b403da0e8bc2c4f0 (patch)
tree8db9ca11e121f929cfd956e36f95d5dd2b83a9d0 /core/encoding
parent062a3c2fae3712c60af00798a0815509a732790b (diff)
Add comment
Diffstat (limited to 'core/encoding')
-rw-r--r--core/encoding/xml/xml_reader.odin4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/encoding/xml/xml_reader.odin b/core/encoding/xml/xml_reader.odin
index 60744357c..d616be9dc 100644
--- a/core/encoding/xml/xml_reader.odin
+++ b/core/encoding/xml/xml_reader.odin
@@ -308,6 +308,10 @@ parse_bytes :: proc(data: []u8, options := DEFAULT_OPTIONS, path := "", error_ha
case .Open_Bracket:
// This could be a CDATA tag part of a tag's body. Unread the `<![`
t.offset -= 3
+
+ // Instead of calling `parse_body` here, we could also `continue loop`
+ // and fall through to the `case:` at the bottom of the outer loop.
+ // This makes the intent clearer.
parse_body(doc, element, opts) or_return
case: