[xml] Improvements.

This commit is contained in:
Jeroen van Rijn
2021-12-02 18:00:29 +01:00
parent 23baf56c87
commit 5807214406
11 changed files with 137 additions and 46 deletions
+2
View File
@@ -519,6 +519,8 @@ parse_attribute :: proc(doc: ^Document) -> (attr: Attr, offset: int, err: Error)
_ = expect(t, .Eq) or_return
value := expect(t, .String) or_return
error(t, t.offset, "String: %v\n", value)
attr.key = strings.intern_get(&doc.intern, key.text)
attr.val = strings.intern_get(&doc.intern, value.text)