summaryrefslogtreecommitdiff
path: root/spec/inputs/import.yue
blob: 6330bcbe7ca16fed24d242a295ed0453127bb01d (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


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

import a, \b, c from items


import master, \ghost from find "mytable"


a, yumm = 3434, "hello"


_table_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 '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