general Lua long comments allowed, e.g --[=[
This commit is contained in:
parent
7d9410f094
commit
f1bdccefd2
|
@ -61,7 +61,7 @@ class.Lua(Lang)
|
||||||
function Lua:_init()
|
function Lua:_init()
|
||||||
self.line_comment = '^%-%-+' -- used for stripping
|
self.line_comment = '^%-%-+' -- used for stripping
|
||||||
self.start_comment_ = '^%-%-%-+' -- used for doc comment line start
|
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_block1 = ']'
|
||||||
self.end_block2 = ']'
|
self.end_block2 = ']'
|
||||||
self:finalize()
|
self:finalize()
|
||||||
|
|
|
@ -331,7 +331,7 @@ function M.grab_block_comment (v,tok,end1,end2)
|
||||||
local res = {v}
|
local res = {v}
|
||||||
repeat
|
repeat
|
||||||
v = lexer.getline(tok)
|
v = lexer.getline(tok)
|
||||||
if v:match '%]%]' then break end
|
if v:match '%]=*%]' then break end
|
||||||
append(res,v)
|
append(res,v)
|
||||||
append(res,'\n')
|
append(res,'\n')
|
||||||
until false
|
until false
|
||||||
|
|
Loading…
Reference in New Issue