diff options
author | Li Jin <dragon-fly@qq.com> | 2021-01-22 17:53:34 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-01-22 17:53:34 +0800 |
commit | f61b96675547c8bf40c7f646e3766f4139efd927 (patch) | |
tree | 57aafd430ad65f6cba85968599568a8c8d9395c0 /spec/inputs | |
parent | 6dc11dccc6c8147b5b71c86be7e458eebc35f8c5 (diff) | |
download | yuescript-f61b96675547c8bf40c7f646e3766f4139efd927.tar.gz yuescript-f61b96675547c8bf40c7f646e3766f4139efd927.tar.bz2 yuescript-f61b96675547c8bf40c7f646e3766f4139efd927.zip |
fix issue #36
Diffstat (limited to 'spec/inputs')
-rw-r--r-- | spec/inputs/funcs.mp | 1 | ||||
-rw-r--r-- | spec/inputs/macro.mp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/spec/inputs/funcs.mp b/spec/inputs/funcs.mp index 4176e33..0e45ff1 100644 --- a/spec/inputs/funcs.mp +++ b/spec/inputs/funcs.mp | |||
@@ -46,6 +46,7 @@ _ = (x = if something then yeah else no) -> | |||
46 | something = (hello=100, world=(x=[[yeah cool]])-> print "eat rice") -> | 46 | something = (hello=100, world=(x=[[yeah cool]])-> print "eat rice") -> |
47 | print hello | 47 | print hello |
48 | 48 | ||
49 | _ = () => | ||
49 | _ = (x, y) => | 50 | _ = (x, y) => |
50 | _ = (@x, @y) => | 51 | _ = (@x, @y) => |
51 | _ = (x=1) => | 52 | _ = (x=1) => |
diff --git a/spec/inputs/macro.mp b/spec/inputs/macro.mp index fafa522..be88a3f 100644 --- a/spec/inputs/macro.mp +++ b/spec/inputs/macro.mp | |||
@@ -110,7 +110,7 @@ do | |||
110 | a += $get_inner_hygienic! | 110 | a += $get_inner_hygienic! |
111 | print a | 111 | print a |
112 | 112 | ||
113 | macro lua lua = (codes)-> "#{codes}" | 113 | macro lua lua = (codes)-> codes |
114 | 114 | ||
115 | x = 0 | 115 | x = 0 |
116 | 116 | ||