From adccbadf183cbfc0ae29aa2d11d4dbf62dc9d5f9 Mon Sep 17 00:00:00 2001 From: leaf corcoran Date: Sat, 28 Feb 2015 14:10:45 -0800 Subject: [PATCH] more whitespace sepcs for table --- spec/inputs/tables.moon | 14 ++++++++++++++ spec/outputs/tables.lua | 18 ++++++++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/spec/inputs/tables.moon b/spec/inputs/tables.moon index 0c2a697..3dad412 100644 --- a/spec/inputs/tables.moon +++ b/spec/inputs/tables.moon @@ -123,7 +123,21 @@ kam = { one_thing => } +-- TODO: both of these have undesirable output keepit going: true, okay: "yeah", workd: "okay" +thing what: + "great", no: + "more" + okay: 123 + + +-- +thing what: + "great", no: + "more" +okay: 123 -- a anon table + +nil diff --git a/spec/outputs/tables.lua b/spec/outputs/tables.lua index cb6ff9f..0cad58a 100644 --- a/spec/outputs/tables.lua +++ b/spec/outputs/tables.lua @@ -152,9 +152,23 @@ local kam = { "two" }] = one_thing(function(self) end) } -return keepit({ +keepit({ going = true }, { okay = "yeah", workd = "okay" -}) \ No newline at end of file +}) +thing({ + what = "great", + no = "more" +}, { + okay = 123 +}) +thing({ + what = "great", + no = "more" +}) +local _ = { + okay = 123 +} +return nil \ No newline at end of file