From 43dde2fff316051d03968e8efd313f19b53112fc Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 21 Nov 2025 12:21:04 +0800 Subject: Updated syntax. * Added error check for mixed use of tabs and spaces. * Supported SimpleTable destructuring for ForEach syntax. --- spec/outputs/string.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/outputs/string.lua') diff --git a/spec/outputs/string.lua b/spec/outputs/string.lua index b536e6d..bdfd676 100644 --- a/spec/outputs/string.lua +++ b/spec/outputs/string.lua @@ -52,7 +52,7 @@ do str = "user: " .. tostring(name) .. "\nid: " .. tostring(id) str = "path: \"C:\\\\Program Files\\\\App\"\ndesc: 'single \"quote\" test'" str = "key: value \nnext: 123 " - str = "list:\n - \"one\"\n - \"two\"" + str = "list:\n\t- \"one\"\n\t- \"two\"" str = "-- comment\ncontent text\n-- comment" str = tostring(1 + 2) .. '\n' .. tostring(2 + 3) .. '\n' .. tostring("a" .. "b") local obj = { -- cgit v1.2.3-55-g6feb