diff options
| author | Li Jin <dragon-fly@qq.com> | 2025-11-21 12:21:04 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2025-11-21 12:21:04 +0800 |
| commit | 43dde2fff316051d03968e8efd313f19b53112fc (patch) | |
| tree | ae3f99ce6edcd397b75002003048518ee33bae5b /spec/outputs/string.lua | |
| parent | b462de9d09d4708490161c7c16858bce2c9cb9b6 (diff) | |
| download | yuescript-0.29.9.tar.gz yuescript-0.29.9.tar.bz2 yuescript-0.29.9.zip | |
Updated syntax.v0.29.9
* Added error check for mixed use of tabs and spaces.
* Supported SimpleTable destructuring for ForEach syntax.
Diffstat (limited to 'spec/outputs/string.lua')
| -rw-r--r-- | spec/outputs/string.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
| 52 | str = "user: " .. tostring(name) .. "\nid: " .. tostring(id) | 52 | str = "user: " .. tostring(name) .. "\nid: " .. tostring(id) |
| 53 | str = "path: \"C:\\\\Program Files\\\\App\"\ndesc: 'single \"quote\" test'" | 53 | str = "path: \"C:\\\\Program Files\\\\App\"\ndesc: 'single \"quote\" test'" |
| 54 | str = "key: value \nnext: 123 " | 54 | str = "key: value \nnext: 123 " |
| 55 | str = "list:\n - \"one\"\n - \"two\"" | 55 | str = "list:\n\t- \"one\"\n\t- \"two\"" |
| 56 | str = "-- comment\ncontent text\n-- comment" | 56 | str = "-- comment\ncontent text\n-- comment" |
| 57 | str = tostring(1 + 2) .. '\n' .. tostring(2 + 3) .. '\n' .. tostring("a" .. "b") | 57 | str = tostring(1 + 2) .. '\n' .. tostring(2 + 3) .. '\n' .. tostring("a" .. "b") |
| 58 | local obj = { | 58 | local obj = { |
