Fixed indentation of fragments with partial long strings/comments (fixes #639, ref #324).

This commit is contained in:
Paul Kulchenko
2016-05-15 09:33:37 -07:00
parent 50c2ab239a
commit b7a7e46b37

View File

@@ -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
)