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()
|
||||
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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue