diff options
Diffstat (limited to 'spec/outputs/codes_from_doc_zh.lua')
-rw-r--r-- | spec/outputs/codes_from_doc_zh.lua | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/spec/outputs/codes_from_doc_zh.lua b/spec/outputs/codes_from_doc_zh.lua index c6d5388..1a10555 100644 --- a/spec/outputs/codes_from_doc_zh.lua +++ b/spec/outputs/codes_from_doc_zh.lua | |||
@@ -61,14 +61,19 @@ local funcA | |||
61 | funcA = function() | 61 | funcA = function() |
62 | return "无法访问宏生成月之脚本里定义的变量" | 62 | return "无法访问宏生成月之脚本里定义的变量" |
63 | end | 63 | end |
64 | do | ||
64 | local function funcB() end | 65 | local function funcB() end |
66 | end | ||
67 | local funcB | ||
65 | funcB = function() | 68 | funcB = function() |
66 | return "访问宏生成Lua代码里定义的变量" | 69 | return "无法访问宏生成 Lua 代码里定义的变量" |
67 | end | 70 | end |
71 | do | ||
68 | -- 插入原始Lua代码 | 72 | -- 插入原始Lua代码 |
69 | if cond then | 73 | if cond then |
70 | print("输出") | 74 | print("输出") |
71 | end | 75 | end |
76 | end | ||
72 | print("yuescript") | 77 | print("yuescript") |
73 | print(3) | 78 | print(3) |
74 | print("有效的枚举类型:", "Static") | 79 | print("有效的枚举类型:", "Static") |
@@ -2061,14 +2066,19 @@ local funcA | |||
2061 | funcA = function() | 2066 | funcA = function() |
2062 | return "无法访问宏生成月之脚本里定义的变量" | 2067 | return "无法访问宏生成月之脚本里定义的变量" |
2063 | end | 2068 | end |
2069 | do | ||
2064 | local function funcB() end | 2070 | local function funcB() end |
2071 | end | ||
2072 | local funcB | ||
2065 | funcB = function() | 2073 | funcB = function() |
2066 | return "访问宏生成Lua代码里定义的变量" | 2074 | return "无法访问宏生成 Lua 代码里定义的变量" |
2067 | end | 2075 | end |
2076 | do | ||
2068 | -- 插入原始Lua代码 | 2077 | -- 插入原始Lua代码 |
2069 | if cond then | 2078 | if cond then |
2070 | print("输出") | 2079 | print("输出") |
2071 | end | 2080 | end |
2081 | end | ||
2072 | print("yuescript") | 2082 | print("yuescript") |
2073 | print(3) | 2083 | print(3) |
2074 | print("有效的枚举类型:", "Static") | 2084 | print("有效的枚举类型:", "Static") |