summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-05-01 21:16:11 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2022-05-01 21:16:11 +0100
commit19d96b65e1a840407a7280ab1f99d48d62932620 (patch)
tree6588cc708367d6be3766030426af0b00aec8fdb6
parentb5f7fcf9572651672f5ed6ff198ac83c947668a8 (diff)
Fix slashes being skipped in unquoted KV tokens
-rw-r--r--src/kv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kv.c b/src/kv.c
index 3ad62be..7720d46 100644
--- a/src/kv.c
+++ b/src/kv.c
@@ -143,7 +143,7 @@ STATE(ident_slash):
switch (c = READ()) {
HANDLE_EOF();
case '/': CB(KV_IDENT); SKIP_COMMENT(sep);
- default: GOTO(ident);
+ default: OUT('/'); GOTO(ident);
}
STATE(identq):
@@ -228,7 +228,7 @@ STATE(val_slash):
switch (c = READ()) {
HANDLE_EOF();
case '/': CB(KV_VAL); SKIP_COMMENT(afterval);
- default: GOTO(val);
+ default: OUT('/'); GOTO(val);
}
STATE(valq):