aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/plus.mp
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-10-08 13:01:18 +0800
committerLi Jin <dragon-fly@qq.com>2020-10-08 13:01:18 +0800
commit97bbe98289fb74c7cf2d9793b80a1a27b4146045 (patch)
tree4bee0dded55bad28f6822b6e2dd3ea5251c66ae2 /spec/inputs/plus.mp
parent5b656d2913e4f9f0017698ec835ce4ddda1dc81f (diff)
downloadyuescript-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.mp38
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 @@
1x\do "work"
2
3func a\do!\end("OK")\if "abc",123
4
5res = b.function\do!\while("OK")\if "def",998
6
7c.repeat.if\then("xyz")\else res
8
9print @for,@@function 123
10
11if fcolor = message\match "<%w*>" then message = message\gsub "<%->", fcolor
12
13message = message\gsub "<%->", fcolor if fcolor = message\match "<%w*>"
14
15valA = func! if func = getfunc!
16
17valB = do
18 func = getfunc!
19 func?!
20
21global 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
34start =
35 something: "cold"
36
37local bathe =
38 on: "fire"