diff options
author | Li Jin <dragon-fly@qq.com> | 2023-07-28 11:53:04 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2023-07-28 11:53:04 +0800 |
commit | 5497775534d20ba06ab9c13bc4db1c5bee877513 (patch) | |
tree | be68d03cf0928efca4a579125e4ba15ef3ab9325 /spec/inputs | |
parent | f415df9617d251abd802257d9750618ccc71ca93 (diff) | |
download | yuescript-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.yue | 4 | ||||
-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 @@ | |||
1 | import "macro-export" as { | 1 | import "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 | ||
6 | import "macro-todo" as $ | 6 | import "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 @@ | |||
1 | import "macro-todo" as $ | 1 | import "macro_todo" as $ |
2 | 2 | ||
3 | import "macro-todo" as {$, :$todo} | 3 | import "macro_todo" as {$, :$todo} |
4 | 4 | ||
5 | export macro config = (debugging = true)-> | 5 | export 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 @@ | |||
1 | import "macro-teal" as $ | 1 | import "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 | |||