You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/docs/doc/README.md
+42-21Lines changed: 42 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,17 +16,17 @@ Yue (月) is the name of moon in Chinese and it's pronounced as [jyɛ].
16
16
### An Overview of YueScript
17
17
```moonscript
18
18
-- import syntax
19
-
import "yue" as :p, :to_lua
19
+
import p, to_lua from "yue"
20
20
21
21
-- object literals
22
22
inventory =
23
23
equipment:
24
-
* "sword"
25
-
* "shield"
24
+
- "sword"
25
+
- "shield"
26
26
items:
27
-
* name: "potion"
27
+
- name: "potion"
28
28
count: 10
29
-
* name: "bread"
29
+
- name: "bread"
30
30
count: 3
31
31
32
32
-- list comprehension
@@ -61,17 +61,17 @@ export 🌛 = "月之脚本"
61
61
<YueDisplay>
62
62
<pre>
63
63
-- import syntax
64
-
import "yue" as :p, :to_lua
64
+
import p, to_lua from "yue"
65
65
66
66
-- object literals
67
67
inventory =
68
68
equipment:
69
-
* "sword"
70
-
* "shield"
69
+
- "sword"
70
+
- "shield"
71
71
items:
72
-
* name: "potion"
72
+
- name: "potion"
73
73
count: 10
74
-
* name: "bread"
74
+
- name: "bread"
75
75
count: 3
76
76
77
77
-- list comprehension
@@ -752,67 +752,88 @@ a ??= false
752
752
753
753
### Implicit Object
754
754
755
-
You can write a list of implicit structures that starts with the symbol **\*** inside a table block. If you are creating implicit object, the fields of the object must be with the same indent.
755
+
You can write a list of implicit structures that starts with the symbol **\*** or **-** inside a table block. If you are creating implicit object, the fields of the object must be with the same indent.
0 commit comments