diff options
author | Li Jin <dragon-fly@qq.com> | 2020-08-06 10:32:05 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-08-06 10:32:05 +0800 |
commit | cb5371a7dcfde196db07f5a2a3f144888b73d522 (patch) | |
tree | 65d7a5d031b83a78f3d3e00725dc15b4bfda2176 /CHANGELOG.md | |
parent | 2506c1b429e952245295e54e71dac4b345e88984 (diff) | |
download | yuescript-cb5371a7dcfde196db07f5a2a3f144888b73d522.tar.gz yuescript-cb5371a7dcfde196db07f5a2a3f144888b73d522.tar.bz2 yuescript-cb5371a7dcfde196db07f5a2a3f144888b73d522.zip |
remove support for escape new line symbol, binary operator expressions can now be written multiline without escape new line symbol.
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0154124..698921f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md | |||
@@ -4,10 +4,13 @@ The implementation for original Moonscript language 0.5.0 can be found in the `0 | |||
4 | 4 | ||
5 | 5 | ||
6 | 6 | ||
7 | ## v0.4.4 | 7 | ## v0.4.7 |
8 | 8 | ||
9 | ### Fixed Issues | 9 | ### Fixed Issues |
10 | 10 | ||
11 | * Remove support for escape new line symbol, binary operator expressions can now be written multiline without escape new line symbol. | ||
12 | * Fix an issue when extending class without name. | ||
13 | * Fix an issue when using return with export statement. | ||
11 | * Fix issues when declaring table key with Lua multiline string and indexing expressions with Lua multiline string. | 14 | * Fix issues when declaring table key with Lua multiline string and indexing expressions with Lua multiline string. |
12 | 15 | ||
13 | ### Added Features | 16 | ### Added Features |
@@ -229,29 +232,13 @@ Fix issues in original Moonscript compiler: | |||
229 | ### Added Features | 232 | ### Added Features |
230 | 233 | ||
231 | * Multi-line comment support. | 234 | * Multi-line comment support. |
232 | * Usage for symbol `\` to escape new line. Will compile codes: | ||
233 | ```Moonscript | ||
234 | str = --[[ | ||
235 | This is a multi line comment. | ||
236 | It's OK. | ||
237 | ]] strA \ -- comment 1 | ||
238 | .. strB \ -- comment 2 | ||
239 | .. strC | ||
240 | |||
241 | func --[[ip]] "192.168.126.110", --[[port]] 3000 | ||
242 | ``` | ||
243 |   to: | ||
244 | ```Lua | ||
245 | local str = strA .. strB .. strC | ||
246 | func("192.168.126.110", 3000) | ||
247 | ``` | ||
248 | 235 | ||
249 | * Back call features with new operator and syntax. For example: | 236 | * Back call features with new operator and syntax. For example: |
250 | ```Moonscript | 237 | ```Moonscript |
251 | {1,2,3} \ | 238 | {1,2,3} |
252 | |> map((x)-> x * 2) \ | 239 | |> map((x)-> x * 2) |
253 | |> filter((x)-> x > 4) \ | 240 | |> filter((x)-> x > 4) |
254 | |> reduce(0, (a,b)-> a + b) \ | 241 | |> reduce(0, (a,b)-> a + b) |
255 | 242 | ||
256 | 243 | ||
257 | do | 244 | do |