diff options
| author | Li Jin <dragon-fly@qq.com> | 2021-02-08 13:38:07 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2021-02-08 13:38:07 +0800 |
| commit | 24dab43a753538dcf3b85bd09bf76c0a3c3c8b73 (patch) | |
| tree | 51c59ddf8302657ae3cce5d28ba27c66737fc842 /spec/inputs/ambiguous.mp | |
| parent | 32651cccb380bf4682fa8f6d3e70d74952171f7b (diff) | |
| download | yuescript-24dab43a753538dcf3b85bd09bf76c0a3c3c8b73.tar.gz yuescript-24dab43a753538dcf3b85bd09bf76c0a3c3c8b73.tar.bz2 yuescript-24dab43a753538dcf3b85bd09bf76c0a3c3c8b73.zip | |
simplify macro syntax. fix issue #38 again.
Diffstat (limited to 'spec/inputs/ambiguous.mp')
| -rw-r--r-- | spec/inputs/ambiguous.mp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/inputs/ambiguous.mp b/spec/inputs/ambiguous.mp index a5980db..d147e8e 100644 --- a/spec/inputs/ambiguous.mp +++ b/spec/inputs/ambiguous.mp | |||
| @@ -10,7 +10,7 @@ import c from d | |||
| 10 | a, b = c, d | 10 | a, b = c, d |
| 11 | (d a) c | 11 | (d a) c |
| 12 | 12 | ||
| 13 | macro block f = (func,arg)-> "(#{func}) #{arg}" | 13 | macro f = (func,arg)-> "(#{func}) #{arg}" |
| 14 | for i = 1, 10 | 14 | for i = 1, 10 |
| 15 | a = -> | 15 | a = -> |
| 16 | $f print, 1 | 16 | $f print, 1 |
