diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-10-08 13:01:18 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-10-08 13:01:18 +0800 |
| commit | 97bbe98289fb74c7cf2d9793b80a1a27b4146045 (patch) | |
| tree | 4bee0dded55bad28f6822b6e2dd3ea5251c66ae2 /spec/inputs/plus.mp | |
| parent | 5b656d2913e4f9f0017698ec835ce4ddda1dc81f (diff) | |
| download | yuescript-97bbe98289fb74c7cf2d9793b80a1a27b4146045.tar.gz yuescript-97bbe98289fb74c7cf2d9793b80a1a27b4146045.tar.bz2 yuescript-97bbe98289fb74c7cf2d9793b80a1a27b4146045.zip | |
change file extension moonp.
Diffstat (limited to 'spec/inputs/plus.mp')
| -rw-r--r-- | spec/inputs/plus.mp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/spec/inputs/plus.mp b/spec/inputs/plus.mp new file mode 100644 index 0000000..ca03499 --- /dev/null +++ b/spec/inputs/plus.mp | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | x\do "work" | ||
| 2 | |||
| 3 | func a\do!\end("OK")\if "abc",123 | ||
| 4 | |||
| 5 | res = b.function\do!\while("OK")\if "def",998 | ||
| 6 | |||
| 7 | c.repeat.if\then("xyz")\else res | ||
| 8 | |||
| 9 | print @for,@@function 123 | ||
| 10 | |||
| 11 | if fcolor = message\match "<%w*>" then message = message\gsub "<%->", fcolor | ||
| 12 | |||
| 13 | message = message\gsub "<%->", fcolor if fcolor = message\match "<%w*>" | ||
| 14 | |||
| 15 | valA = func! if func = getfunc! | ||
| 16 | |||
| 17 | valB = do | ||
| 18 | func = getfunc! | ||
| 19 | func?! | ||
| 20 | |||
| 21 | global backpack = | ||
| 22 | something: | ||
| 23 | yeah: 200 | ||
| 24 | they: -> | ||
| 25 | print "hello" | ||
| 26 | yor_feet"small" | ||
| 27 | pretty: hair | ||
| 28 | gold: hmm | ||
| 29 | yow: 1000 | ||
| 30 | |||
| 31 | eat: goo | ||
| 32 | yeah: dudd | ||
| 33 | |||
| 34 | start = | ||
| 35 | something: "cold" | ||
| 36 | |||
| 37 | local bathe = | ||
| 38 | on: "fire" | ||
