aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-04-24 16:17:44 +0800
committerLi Jin <dragon-fly@qq.com>2020-04-24 16:17:44 +0800
commitfeac3c1cba6ca95b911240217f74a494680cd057 (patch)
treee85b6648a51c3355181bd1ad86f3a043c5223ee2 /spec
parentade971c9b5f5d367de72ab8e65e9c651ce87cc9a (diff)
downloadyuescript-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.moon18
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
20global 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
33start =
34 something: "cold"
35
36local bathe =
37 on: "fire"