diff options
author | Li Jin <dragon-fly@qq.com> | 2021-02-17 11:22:07 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-02-17 11:22:07 +0800 |
commit | 7066392d1c974065181d95d93274136dcd625d43 (patch) | |
tree | cf51eafc2c52cbc12246a306bca172d799193d30 /spec/inputs/plus.yue | |
parent | 90cd12ad9ef465f3e435e1bd034dcfbe4e19d016 (diff) | |
download | yuescript-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.yue | 40 |
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 @@ | |||
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 | local valA = func! if func = getfunc! | ||
18 | |||
19 | valB = do | ||
20 | func = getfunc! | ||
21 | func?! | ||
22 | |||
23 | global 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 | |||
36 | start = | ||
37 | something: "cold" | ||
38 | |||
39 | local bathe = | ||
40 | on: "fire" | ||