diff options
| author | Li Jin <dragon-fly@qq.com> | 2021-02-10 20:45:46 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2021-02-10 20:50:54 +0800 |
| commit | 90e5ee7ee432f558b3c55d79fba1fcb2a8ce502f (patch) | |
| tree | 3b3dd29a627dc16448d6fa628559f65bcd405dac /spec/inputs/syntax.mp | |
| parent | c68e11bc6d7631185749aaf0c8d89147b3ac9cc9 (diff) | |
| download | yuescript-90e5ee7ee432f558b3c55d79fba1fcb2a8ce502f.tar.gz yuescript-90e5ee7ee432f558b3c55d79fba1fcb2a8ce502f.tar.bz2 yuescript-90e5ee7ee432f558b3c55d79fba1fcb2a8ce502f.zip | |
fix issue #38 with a better solution.
Diffstat (limited to 'spec/inputs/syntax.mp')
| -rw-r--r-- | spec/inputs/syntax.mp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/inputs/syntax.mp b/spec/inputs/syntax.mp index c8ad96d..f3a0a5c 100644 --- a/spec/inputs/syntax.mp +++ b/spec/inputs/syntax.mp | |||
| @@ -123,6 +123,21 @@ argon\world().something() | |||
| 123 | 123 | ||
| 124 | argon\somethin"200".world(1,2) | 124 | argon\somethin"200".world(1,2) |
| 125 | 125 | ||
| 126 | origin | ||
| 127 | .transform | ||
| 128 | .root | ||
| 129 | .gameObject | ||
| 130 | \Parents! | ||
| 131 | \Descendants! | ||
| 132 | \SelectEnable! | ||
| 133 | \SelectVisible! | ||
| 134 | \TagEqual "fx" | ||
| 135 | \Where (x) -> | ||
| 136 | if x\IsTargeted! | ||
| 137 | return false | ||
| 138 | x.name\EndsWith "(Clone)" | ||
| 139 | \Destroy! | ||
| 140 | |||
| 126 | x = -434 | 141 | x = -434 |
| 127 | 142 | ||
| 128 | x = -hello world one two | 143 | x = -hello world one two |
| @@ -163,6 +178,9 @@ something\hello(what) a,b | |||
| 163 | something\hello what | 178 | something\hello what |
| 164 | something.hello\world a,b | 179 | something.hello\world a,b |
| 165 | something.hello\world(1,2,3) a,b | 180 | something.hello\world(1,2,3) a,b |
| 181 | something | ||
| 182 | .hello | ||
| 183 | \world(1,2,3) a,b | ||
| 166 | 184 | ||
| 167 | 185 | ||
| 168 | x = 1232 | 186 | x = 1232 |
| @@ -295,6 +313,9 @@ a /= func "cool" | |||
| 295 | 313 | ||
| 296 | x.then = "hello" | 314 | x.then = "hello" |
| 297 | x.while.true = "hello" | 315 | x.while.true = "hello" |
| 316 | x | ||
| 317 | .while | ||
| 318 | .true = "hello" | ||
| 298 | 319 | ||
| 299 | -- | 320 | -- |
| 300 | 321 | ||
