general Lua long comments allowed, e.g --[=[

This commit is contained in:
steve donovan 2011-08-24 18:57:53 +02:00
parent 7d9410f094
commit f1bdccefd2
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ class.Lua(Lang)
function Lua:_init()
self.line_comment = '^%-%-+' -- used for stripping
self.start_comment_ = '^%-%-%-+' -- used for doc comment line start
self.block_comment = '^%-%-%[%[%-+' -- used for block doc comments
self.block_comment = '^%-%-%[=*%[%-+' -- used for block doc comments
self.end_block1 = ']'
self.end_block2 = ']'
self:finalize()

View File

@ -331,7 +331,7 @@ function M.grab_block_comment (v,tok,end1,end2)
local res = {v}
repeat
v = lexer.getline(tok)
if v:match '%]%]' then break end
if v:match '%]=*%]' then break end
append(res,v)
append(res,'\n')
until false