aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/plus.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2021-02-17 11:22:07 +0800
committerLi Jin <dragon-fly@qq.com>2021-02-17 11:22:07 +0800
commit7066392d1c974065181d95d93274136dcd625d43 (patch)
treecf51eafc2c52cbc12246a306bca172d799193d30 /spec/inputs/plus.yue
parent90cd12ad9ef465f3e435e1bd034dcfbe4e19d016 (diff)
downloadyuescript-7066392d1c974065181d95d93274136dcd625d43.tar.gz
yuescript-7066392d1c974065181d95d93274136dcd625d43.tar.bz2
yuescript-7066392d1c974065181d95d93274136dcd625d43.zip
stop reusing variables, rename project.
Diffstat (limited to 'spec/inputs/plus.yue')
-rw-r--r--spec/inputs/plus.yue40
1 files changed, 40 insertions, 0 deletions
diff --git a/spec/inputs/plus.yue b/spec/inputs/plus.yue
new file mode 100644
index 0000000..e387090
--- /dev/null
+++ b/spec/inputs/plus.yue
@@ -0,0 +1,40 @@
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
17local valA = func! if func = getfunc!
18
19valB = do
20 func = getfunc!
21 func?!
22
23global backpack =
24 something:
25 yeah: 200
26 they: ->
27 print "hello"
28 yor_feet"small"
29 pretty: hair
30 gold: hmm
31 yow: 1000
32
33 eat: goo
34 yeah: dudd
35
36start =
37 something: "cold"
38
39local bathe =
40 on: "fire"