aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/codes_from_doc_zh.lua
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2025-05-26 15:52:07 +0800
committerLi Jin <dragon-fly@qq.com>2025-05-26 15:52:07 +0800
commita9d28cb615d2bdc09d2482d5262951f2afc8d6e1 (patch)
tree0567dd183518ce5df596875b8267215ecf5a25ce /spec/outputs/codes_from_doc_zh.lua
parent4f301523563e80e838490cc6216a16bb3b8d6122 (diff)
downloadyuescript-main.tar.gz
yuescript-main.tar.bz2
yuescript-main.zip
Added doc for `with?` syntax.HEADmain
Diffstat (limited to '')
-rw-r--r--spec/outputs/codes_from_doc_zh.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/outputs/codes_from_doc_zh.lua b/spec/outputs/codes_from_doc_zh.lua
index ecab077..399f8c1 100644
--- a/spec/outputs/codes_from_doc_zh.lua
+++ b/spec/outputs/codes_from_doc_zh.lua
@@ -2141,6 +2141,10 @@ do
2141 _with_1["key-name"] = value 2141 _with_1["key-name"] = value
2142end 2142end
2143_with_0[#_with_0 + 1] = "abc" 2143_with_0[#_with_0 + 1] = "abc"
2144local _with_0 = obj
2145if _with_0 ~= nil then
2146 print(obj.name)
2147end
2144do 2148do
2145 local var = "hello" 2149 local var = "hello"
2146 print(var) 2150 print(var)
@@ -4351,6 +4355,10 @@ do
4351 _with_1["key-name"] = value 4355 _with_1["key-name"] = value
4352end 4356end
4353_with_0[#_with_0 + 1] = "abc" 4357_with_0[#_with_0 + 1] = "abc"
4358local _with_0 = obj
4359if _with_0 ~= nil then
4360 print(obj.name)
4361end
4354do 4362do
4355 local var = "hello" 4363 local var = "hello"
4356 print(var) 4364 print(var)