Merge pull request #228 from Alloyed/fix-comment-highlighting

Fix end-of-block comments not highlighting
This commit is contained in:
Steve J Donovan 2016-04-10 16:55:57 +02:00
commit 75a108e0f8
1 changed files with 2 additions and 0 deletions

View File

@ -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},