diff --git a/ldoc/lexer.lua b/ldoc/lexer.lua index a396652..c04a504 100644 --- a/ldoc/lexer.lua +++ b/ldoc/lexer.lua @@ -305,6 +305,7 @@ function lexer.lua(s,filter,options) {'^`[^`]+`',bdump}, {'^%-%-%[(=*)%[.-%]%1%]',cdump}, {'^%-%-.-\n',cdump}, + {'^%-%-.-$',cdump}, {'^%[(=*)%[.-%]%1%]',sdump_l}, {'^==',tdump}, {'^~=',tdump}, @@ -354,6 +355,7 @@ function lexer.cpp(s,filter,options,no_string) {STRING1,chdump}, {STRING2,sdump}, {'^//.-\n',cdump}, + {'^//.-$',cdump}, {'^/%*.-%*/',cdump}, {'^==',tdump}, {'^!=',tdump},