diff options
author | Li Jin <dragon-fly@qq.com> | 2020-01-28 00:41:53 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-01-28 01:10:31 +0800 |
commit | fb47c11bd942c83317f1f9a2e255535649401cbf (patch) | |
tree | 3fb35b9b23911a37c4e4499cf650792ba2b8b21c /spec/inputs/syntax.moon | |
parent | 27717564cb1ab72c88c10a8392b6795ddea7a0ef (diff) | |
download | yuescript-fb47c11bd942c83317f1f9a2e255535649401cbf.tar.gz yuescript-fb47c11bd942c83317f1f9a2e255535649401cbf.tar.bz2 yuescript-fb47c11bd942c83317f1f9a2e255535649401cbf.zip |
Add multi-line comment support. Add escape new line symbol. Add back call syntax.
Diffstat (limited to 'spec/inputs/syntax.moon')
-rw-r--r-- | spec/inputs/syntax.moon | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/inputs/syntax.moon b/spec/inputs/syntax.moon index bf0cf04..3ac9991 100644 --- a/spec/inputs/syntax.moon +++ b/spec/inputs/syntax.moon | |||
@@ -270,3 +270,13 @@ z = a- b | |||
270 | 270 | ||
271 | 271 | ||
272 | -- cooool | 272 | -- cooool |
273 | |||
274 | str = --[[ | ||
275 | This is a multi line comment. | ||
276 | It's OK. | ||
277 | ]] strA \ -- comment 1 | ||
278 | .. strB \ -- comment 2 | ||
279 | .. strC | ||
280 | |||
281 | func --[[port]] 3000, --[[ip]] "192.168.1.1" | ||
282 | |||