From aaabed2ef2d0e5b97ce1e25d7590cc41de6480f3 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Mon, 22 Feb 2021 17:47:17 +0800 Subject: simplify and extend import syntax. --- spec/inputs/import.yue | 5 +++-- spec/inputs/syntax.yue | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'spec') diff --git a/spec/inputs/import.yue b/spec/inputs/import.yue index e075404..6330bcb 100644 --- a/spec/inputs/import.yue +++ b/spec/inputs/import.yue @@ -56,7 +56,8 @@ do do import "player" as Player import "lpeg" as {:C, :Ct, :Cmt} - import "export" as {Something:{umm:{ch}}} + import "export" as {one, two, Something:{umm:{ch}}} + import "export" as :Another do global * @@ -65,4 +66,4 @@ do import "org.package.module-y" do - import "org.package.module" as {function:func, if:ifVar} + import "org.package.module" as function:func, if:ifVar diff --git a/spec/inputs/syntax.yue b/spec/inputs/syntax.yue index 4df5785..aed4144 100644 --- a/spec/inputs/syntax.yue +++ b/spec/inputs/syntax.yue @@ -194,6 +194,10 @@ hello = function: "okay" good: 230203 +tb = { + do: b + do :b +} div class: "cool" -- cgit v1.2.3-55-g6feb