aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/import.yue
blob: b8ffc24c09f21a7c05af77660c6d5e7bd72af103 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141


import hello from yeah
import holla, world from table["cool"]

import x, \y, z from items

import master, \ghost from find "mytable"

_obj_0 = 232

import something from a table


if indent
	import okay, \well from tables[100]

do
	import a, b, c from z

do
	import a,
		b, c from z

do
	import a
		b
		c from z

do
	import
		a
		b
		c from z


do
	import
		a
		b
		c
		from z

do
	import p from "yue"
	import item from 'module.part'
	import x1, y1, \z1 from "mymodule"

do
	from 'yue' import p
	from 'mymodule' import x1, y1, \z1

do
	from z import a, b, c

do
	from z import a,
		b, c

do
	from z import a
		b
		c

do
	from z import
		a
		b
		c

do
	from z
	import
		a
		b
		c

do
	from UnityEngine import Object
		GameObject
		Transform
		MonoBehaviour
		Vector3
		Quaternion

	speed = 10

do
	from UnityEngine import Object, GameObject,
		Transform
		MonoBehaviour
		Vector3
		Quaternion

	speed = 10

do
	from UnityEngine import Object, GameObject,
		Transform,
		MonoBehaviour
		Vector3, Quaternion

	update speed

do
	from UnityEngine import
		Object, GameObject,
		Transform,
		MonoBehaviour
		Vector3, Quaternion

	update speed

do
	import 'module'
	import 'module_x'
	import "d-a-s-h-e-s"
	import "module.part"

do
	import "player" as Player
	import "lpeg" as {:C, :Ct, :Cmt}
	import "export" as {one, two, Something:{umm:{ch}}}
	import "export" as :Another

do
	global *
	import 'module'
	import 'module_x'
	import "org.package.module-y"

do
	import "org.package.module" as function:func, if:ifVar

do
	import "m" as {<gc>: b}
	import "m" as {:<index>}
	import "m" as {e: f, <pairs>: c}
	import "m" as {c: d}
	import "m" as {g, {<close>: i}}