fix comments stripper (fixes #54)

This commit is contained in:
Vadim A. Misbakh-Soloviov 2019-08-18 22:53:13 +07:00
parent f102657929
commit 4f6437ebd1
No known key found for this signature in database
GPG Key ID: 6765F46F28E9607E

View File

@ -41,7 +41,7 @@ local function parse(text,limit) -- {{{
local tpl = false local tpl = false
if not opts.keep_comments then -- Strip (or not) comments {{{ if not opts.keep_comments then -- Strip (or not) comments {{{
text = text:gsub("<!--.--->","") -- Many chances commented code will have syntax errors, that'll lead to parser failures text = text:gsub("<!%-%-.-%-%->","") -- Many chances commented code will have syntax errors, that'll lead to parser failures
end -- }}} end -- }}}
local tpr={} local tpr={}