From da13ae5942bf3bb4b9278bbcbf4e1040a27fc219 Mon Sep 17 00:00:00 2001 From: steve donovan Date: Thu, 14 Jul 2011 15:23:20 +0200 Subject: [PATCH] handle [=[...]=] comments and strings --- ldoc/lexer.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ldoc/lexer.lua b/ldoc/lexer.lua index 33515a7..f874573 100644 --- a/ldoc/lexer.lua +++ b/ldoc/lexer.lua @@ -307,9 +307,9 @@ function lexer.lua(s,filter,options) {STRING3,sdump}, {STRING1,sdump}, {STRING2,sdump}, - {'^%-%-%[%[.-%]%]',cdump}, + {'^%-%-%[(=*)%[.-%]%1%]',cdump}, {'^%-%-.-\n',cdump}, - {'^%[%[.-%]%]',sdump_l}, + {'^%[(=*)%[.-%]%1%]',sdump_l}, {'^==',tdump}, {'^~=',tdump}, {'^<=',tdump},