scansion/parser.lua

changeset 2
60022b6e0874
parent 0
2e31b584f8d9
child 19
af311b9827e2
--- a/scansion/parser.lua	Sat Sep 05 14:46:22 2015 +0100
+++ b/scansion/parser.lua	Sat Sep 05 15:22:21 2015 +0100
@@ -27,7 +27,7 @@
 			if not last_object then
 				return nil, "Line "..line_number.. "unexpected outside of an object definition";
 			end
-			local k, v = line:match("^%s+(%a+):(.+)$")
+			local k, v = line:match("^%s+(%a+):%s*(.+)$")
 			last_object[k] = v;
 		elseif #parsed.actions > 0 and line:sub(1,1) == "\t" then
 			table.insert(parsed.actions[#parsed.actions].extra, line:sub(2));

mercurial