From a9d28cb615d2bdc09d2482d5262951f2afc8d6e1 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Mon, 26 May 2025 15:52:07 +0800 Subject: Added doc for `with?` syntax. --- spec/outputs/codes_from_doc.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec/outputs/codes_from_doc.lua') diff --git a/spec/outputs/codes_from_doc.lua b/spec/outputs/codes_from_doc.lua index d857dec..55be7df 100644 --- a/spec/outputs/codes_from_doc.lua +++ b/spec/outputs/codes_from_doc.lua @@ -2147,6 +2147,10 @@ do _with_1["key-name"] = value end _with_0[#_with_0 + 1] = "abc" +local _with_0 = obj +if _with_0 ~= nil then + print(obj.name) +end do local var = "hello" print(var) @@ -4363,6 +4367,10 @@ do _with_1["key-name"] = value end _with_0[#_with_0 + 1] = "abc" +local _with_0 = obj +if _with_0 ~= nil then + print(obj.name) +end do local var = "hello" print(var) -- cgit v1.2.3-55-g6feb