diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-01-23 14:35:14 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-01-23 14:35:14 +0800 |
| commit | 7ac3519dc40bb6f6ab979c9cd35fd585f25d1c25 (patch) | |
| tree | 024fabcf12638dbd4cb9fe6c58251f9227fc9380 /spec/inputs/import.moon | |
| parent | 782334d95720819f216004e0120ea84ba2c43afb (diff) | |
| download | yuescript-7ac3519dc40bb6f6ab979c9cd35fd585f25d1c25.tar.gz yuescript-7ac3519dc40bb6f6ab979c9cd35fd585f25d1c25.tar.bz2 yuescript-7ac3519dc40bb6f6ab979c9cd35fd585f25d1c25.zip | |
fix Moonscript issue 156, update new 'import' functions.
Diffstat (limited to 'spec/inputs/import.moon')
| -rw-r--r-- | spec/inputs/import.moon | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/inputs/import.moon b/spec/inputs/import.moon index d86d724..ef6f4ee 100644 --- a/spec/inputs/import.moon +++ b/spec/inputs/import.moon | |||
| @@ -46,3 +46,22 @@ do | |||
| 46 | c | 46 | c |
| 47 | from z | 47 | from z |
| 48 | 48 | ||
| 49 | |||
| 50 | do | ||
| 51 | import 'module' | ||
| 52 | import 'module_x' | ||
| 53 | import "d-a-s-h-e-s" | ||
| 54 | import "module.part" | ||
| 55 | |||
| 56 | do | ||
| 57 | import "player" as Player | ||
| 58 | import "lpeg" as {:C, :Ct, :Cmt} | ||
| 59 | |||
| 60 | do | ||
| 61 | export * | ||
| 62 | import 'module' | ||
| 63 | import 'module_x' | ||
| 64 | import "org.package.module-y" | ||
| 65 | |||
| 66 | do | ||
| 67 | import "org.package.module" as {function:func,if:ifVar} | ||
