diff options
Diffstat (limited to '')
| -rw-r--r-- | src/MoonP/moon_compiler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/MoonP/moon_compiler.cpp b/src/MoonP/moon_compiler.cpp index a39bfd0..83b91e6 100644 --- a/src/MoonP/moon_compiler.cpp +++ b/src/MoonP/moon_compiler.cpp | |||
| @@ -32,7 +32,7 @@ inline std::string s(std::string_view sv) { | |||
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | const char* moonScriptVersion() { | 34 | const char* moonScriptVersion() { |
| 35 | return "0.5.0-r0.1.4"; | 35 | return "0.5.0-r0.1.5"; |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | class MoonCompilerImpl { | 38 | class MoonCompilerImpl { |
| @@ -1740,7 +1740,8 @@ private: | |||
| 1740 | body->content.set(block); | 1740 | body->content.set(block); |
| 1741 | auto funLit = x->new_ptr<FunLit_t>(); | 1741 | auto funLit = x->new_ptr<FunLit_t>(); |
| 1742 | funLit->argsDef.set(backcall->argsDef); | 1742 | funLit->argsDef.set(backcall->argsDef); |
| 1743 | funLit->arrow.set(toAst<fn_arrow_t>("->"sv, x)); | 1743 | auto arrow = _parser.toString(backcall->arrow); |
| 1744 | funLit->arrow.set(toAst<fn_arrow_t>(arrow == "<-"sv ? "->"sv : "=>"sv, x)); | ||
| 1744 | funLit->body.set(body); | 1745 | funLit->body.set(body); |
| 1745 | auto simpleValue = x->new_ptr<SimpleValue_t>(); | 1746 | auto simpleValue = x->new_ptr<SimpleValue_t>(); |
| 1746 | simpleValue->value.set(funLit); | 1747 | simpleValue->value.set(funLit); |
