diff options
| author | Li Jin <dragon-fly@qq.com> | 2025-05-26 11:07:38 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2025-05-26 11:07:38 +0800 |
| commit | a91135ce512f907ed085d9aac147d8fcad356406 (patch) | |
| tree | e53408fe0a88ef71ea33d14bcb0b6eeb3a344810 /spec/inputs/macro_export.yue | |
| parent | 4ba4c90e711c6204aa40e38347c5a5a076d9370e (diff) | |
| download | yuescript-a91135ce512f907ed085d9aac147d8fcad356406.tar.gz yuescript-a91135ce512f907ed085d9aac147d8fcad356406.tar.bz2 yuescript-a91135ce512f907ed085d9aac147d8fcad356406.zip | |
Added assignment expression for switch syntax.
Diffstat (limited to 'spec/inputs/macro_export.yue')
| -rw-r--r-- | spec/inputs/macro_export.yue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/inputs/macro_export.yue b/spec/inputs/macro_export.yue index cc7d459..75fd813 100644 --- a/spec/inputs/macro_export.yue +++ b/spec/inputs/macro_export.yue | |||
| @@ -38,8 +38,8 @@ export macro copy = (src, dst, ...)-> | |||
| 38 | " | 38 | " |
| 39 | do | 39 | do |
| 40 | local _src_, _dst_ | 40 | local _src_, _dst_ |
| 41 | with _dst_ = #{dst} | 41 | with _dst_ := #{dst} |
| 42 | with _src_ = #{src} | 42 | with _src_ := #{src} |
| 43 | #{table.concat for field in *{...} do " | 43 | #{table.concat for field in *{...} do " |
| 44 | _dst_.#{field} = _src_.#{field} | 44 | _dst_.#{field} = _src_.#{field} |
| 45 | "}" | 45 | "}" |
