From b7a7e46b37c8ea5c49cc438a61a2ecb646ed313b Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Sun, 15 May 2016 09:33:37 -0700 Subject: [PATCH] Fixed indentation of fragments with partial long strings/comments (fixes #639, ref #324). --- spec/lua.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lua.lua b/spec/lua.lua index e1d583bcda..a233172bee 100644 --- a/spec/lua.lua +++ b/spec/lua.lua @@ -80,7 +80,7 @@ return { end str = (str :gsub('%[=*%[.-%]=*%]','') -- remove long strings - :gsub('%[=*%[.*','') -- remove partial long strings + :gsub('%[=*%[.*',''):gsub('.*%]=*%]','') -- remove partial long strings :gsub('%-%-.*','') -- strip comments after strings are processed :gsub("%b()","()") -- remove all function calls )