diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/inputs/macro.yue | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/inputs/macro.yue b/spec/inputs/macro.yue index eb3cf75..6a255fe 100644 --- a/spec/inputs/macro.yue +++ b/spec/inputs/macro.yue | |||
@@ -226,17 +226,18 @@ $chainB( | |||
226 | ) | 226 | ) |
227 | 227 | ||
228 | macro chainC = (...)-> | 228 | macro chainC = (...)-> |
229 | import "moonp" as {:to_lua} | 229 | import "yue" as {:to_lua} |
230 | callable = nil | 230 | callable = nil |
231 | config = { | 231 | config = { |
232 | implicit_return_root: false | 232 | implicit_return_root: false |
233 | reserve_line_number: false | 233 | reserve_line_number: false |
234 | } | 234 | } |
235 | for item in *{...} | 235 | for item in *{...} |
236 | itemCodes = to_lua(item,config)\gsub '%s*$','' | ||
236 | if callable? | 237 | if callable? |
237 | callable = "#{callable}:#{to_lua(item,config)\gsub '%s*$',''}" | 238 | callable = "#{callable}:#{itemCodes}" |
238 | else | 239 | else |
239 | callable = to_lua(item,config)\gsub '%s*$','' | 240 | callable = itemCodes |
240 | { | 241 | { |
241 | codes: $showMacro "chainC", callable | 242 | codes: $showMacro "chainC", callable |
242 | type: "lua" | 243 | type: "lua" |