diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-04-24 16:17:44 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-04-24 16:17:44 +0800 |
| commit | feac3c1cba6ca95b911240217f74a494680cd057 (patch) | |
| tree | e85b6648a51c3355181bd1ad86f3a043c5223ee2 /spec | |
| parent | ade971c9b5f5d367de72ab8e65e9c651ce87cc9a (diff) | |
| download | yuescript-feac3c1cba6ca95b911240217f74a494680cd057.tar.gz yuescript-feac3c1cba6ca95b911240217f74a494680cd057.tar.bz2 yuescript-feac3c1cba6ca95b911240217f74a494680cd057.zip | |
fix errors when explicitly declaring global or local variable initialized with table block.
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/inputs/plus.moon | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/inputs/plus.moon b/spec/inputs/plus.moon index f455845..38d3a08 100644 --- a/spec/inputs/plus.moon +++ b/spec/inputs/plus.moon | |||
| @@ -17,3 +17,21 @@ valB = do | |||
| 17 | func = getfunc! | 17 | func = getfunc! |
| 18 | func?! | 18 | func?! |
| 19 | 19 | ||
| 20 | global backpack = | ||
| 21 | something: | ||
| 22 | yeah: 200 | ||
| 23 | they: -> | ||
| 24 | print "hello" | ||
| 25 | yor_feet"small" | ||
| 26 | pretty: hair | ||
| 27 | gold: hmm | ||
| 28 | yow: 1000 | ||
| 29 | |||
| 30 | eat: goo | ||
| 31 | yeah: dudd | ||
| 32 | |||
| 33 | start = | ||
| 34 | something: "cold" | ||
| 35 | |||
| 36 | local bathe = | ||
| 37 | on: "fire" | ||
