From 7775f4c5b97dcc0d7e71a2cd8fb132f2b5bc1bd6 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Sun, 2 Jul 2023 16:47:12 +0800 Subject: fix issue https://github.com/leafo/moonscript/issues/448 --- spec/inputs/string.yue | 1 + spec/outputs/string.lua | 1 + 2 files changed, 2 insertions(+) (limited to 'spec') diff --git a/spec/inputs/string.yue b/spec/inputs/string.yue index 201e60d..f91383e 100644 --- a/spec/inputs/string.yue +++ b/spec/inputs/string.yue @@ -51,6 +51,7 @@ d = "#{hello world}" e = "#{1} #{2} #{3}" f = [[hello #{world} world]] +g = "\#{hello world}" -- diff --git a/spec/outputs/string.lua b/spec/outputs/string.lua index 87ecf2c..febea62 100644 --- a/spec/outputs/string.lua +++ b/spec/outputs/string.lua @@ -29,6 +29,7 @@ local c = "hello " .. tostring(5 + 1) local d = tostring(hello(world)) local e = tostring(1) .. " " .. tostring(2) .. " " .. tostring(3) local f = [[hello #{world} world]] +local g = "#{hello world}" a = 'hello #{hello} hello' b = '#{hello} hello' c = 'hello #{hello}' -- cgit v1.2.3-55-g6feb