summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmber Sawady <ecs@d2evs.net>2022-09-14 12:20:28 +0000
committerQuentin Carbonneaux <quentin@c9x.me>2022-09-15 09:09:30 +0200
commitbdaf8d374e5054c7f0a006f6bc038ee08d165fd3 (patch)
tree6956a4ce7331110ccf1efa5ce12354113389898b
parent0715a395dfb50d890043df718959cd9229de226f (diff)
downloadroux-bdaf8d374e5054c7f0a006f6bc038ee08d165fd3.tar.gz
Fix parsing of multiple globals in datadef
Eg. data $a = { w $b $c }
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 1912c8b..cfed548 100644
--- a/parse.c
+++ b/parse.c
@@ -1049,7 +1049,7 @@ parsedat(void cb(Dat *), Lnk *lnk)
 				err("constant literal expected");
 			cb(&d);
 			t = nextnl();
-		} while (t == Tint || t == Tflts || t == Tfltd || t == Tstr);
+		} while (t == Tint || t == Tflts || t == Tfltd || t == Tstr || t == Tglo);
 		if (t == Trbrace)
 			break;
 		if (t != Tcomma)