aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-07-28 11:53:04 +0800
committerLi Jin <dragon-fly@qq.com>2023-07-28 11:53:04 +0800
commit5497775534d20ba06ab9c13bc4db1c5bee877513 (patch)
treebe68d03cf0928efca4a579125e4ba15ef3ab9325 /spec/inputs
parentf415df9617d251abd802257d9750618ccc71ca93 (diff)
downloadyuescript-5497775534d20ba06ab9c13bc4db1c5bee877513.tar.gz
yuescript-5497775534d20ba06ab9c13bc4db1c5bee877513.tar.bz2
yuescript-5497775534d20ba06ab9c13bc4db1c5bee877513.zip
fix xpcall usages in different Lua version.
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/macro.yue4
-rw-r--r--spec/inputs/macro_export.yue (renamed from spec/inputs/macro-export.yue)4
-rw-r--r--spec/inputs/macro_teal.yue (renamed from spec/inputs/macro-teal.yue)0
-rw-r--r--spec/inputs/macro_todo.yue (renamed from spec/inputs/macro-todo.yue)0
-rw-r--r--spec/inputs/teal_lang.yue (renamed from spec/inputs/teal-lang.yue)2
-rw-r--r--spec/inputs/try_catch.yue (renamed from spec/inputs/try-catch.yue)0
6 files changed, 5 insertions, 5 deletions
diff --git a/spec/inputs/macro.yue b/spec/inputs/macro.yue
index ac51d85..ae14f53 100644
--- a/spec/inputs/macro.yue
+++ b/spec/inputs/macro.yue
@@ -1,9 +1,9 @@
1import "macro-export" as { 1import "macro_export" as {
2 $, -- import all macros 2 $, -- import all macros
3 $config: $myconfig, -- rename macro $config to $myconfig 3 $config: $myconfig, -- rename macro $config to $myconfig
4} 4}
5 5
6import "macro-todo" as $ 6import "macro_todo" as $
7 7
8$asserts item == nil 8$asserts item == nil
9 9
diff --git a/spec/inputs/macro-export.yue b/spec/inputs/macro_export.yue
index ff0d273..eec5848 100644
--- a/spec/inputs/macro-export.yue
+++ b/spec/inputs/macro_export.yue
@@ -1,6 +1,6 @@
1import "macro-todo" as $ 1import "macro_todo" as $
2 2
3import "macro-todo" as {$, :$todo} 3import "macro_todo" as {$, :$todo}
4 4
5export macro config = (debugging = true)-> 5export macro config = (debugging = true)->
6 global debugMode = debugging == "true" 6 global debugMode = debugging == "true"
diff --git a/spec/inputs/macro-teal.yue b/spec/inputs/macro_teal.yue
index a443614..a443614 100644
--- a/spec/inputs/macro-teal.yue
+++ b/spec/inputs/macro_teal.yue
diff --git a/spec/inputs/macro-todo.yue b/spec/inputs/macro_todo.yue
index 752c9cb..752c9cb 100644
--- a/spec/inputs/macro-todo.yue
+++ b/spec/inputs/macro_todo.yue
diff --git a/spec/inputs/teal-lang.yue b/spec/inputs/teal_lang.yue
index b28c915..e01682f 100644
--- a/spec/inputs/teal-lang.yue
+++ b/spec/inputs/teal_lang.yue
@@ -1,4 +1,4 @@
1import "macro-teal" as $ 1import "macro_teal" as $
2 2
3$local "a:{string:number}", {value:123} 3$local "a:{string:number}", {value:123}
4$local "b:number", a.value 4$local "b:number", a.value
diff --git a/spec/inputs/try-catch.yue b/spec/inputs/try_catch.yue
index e38cbef..e38cbef 100644
--- a/spec/inputs/try-catch.yue
+++ b/spec/inputs/try_catch.yue