Merge pull request #228 from Alloyed/fix-comment-highlighting
Fix end-of-block comments not highlighting
This commit is contained in:
commit
75a108e0f8
|
@ -305,6 +305,7 @@ function lexer.lua(s,filter,options)
|
||||||
{'^`[^`]+`',bdump},
|
{'^`[^`]+`',bdump},
|
||||||
{'^%-%-%[(=*)%[.-%]%1%]',cdump},
|
{'^%-%-%[(=*)%[.-%]%1%]',cdump},
|
||||||
{'^%-%-.-\n',cdump},
|
{'^%-%-.-\n',cdump},
|
||||||
|
{'^%-%-.-$',cdump},
|
||||||
{'^%[(=*)%[.-%]%1%]',sdump_l},
|
{'^%[(=*)%[.-%]%1%]',sdump_l},
|
||||||
{'^==',tdump},
|
{'^==',tdump},
|
||||||
{'^~=',tdump},
|
{'^~=',tdump},
|
||||||
|
@ -354,6 +355,7 @@ function lexer.cpp(s,filter,options,no_string)
|
||||||
{STRING1,chdump},
|
{STRING1,chdump},
|
||||||
{STRING2,sdump},
|
{STRING2,sdump},
|
||||||
{'^//.-\n',cdump},
|
{'^//.-\n',cdump},
|
||||||
|
{'^//.-$',cdump},
|
||||||
{'^/%*.-%*/',cdump},
|
{'^/%*.-%*/',cdump},
|
||||||
{'^==',tdump},
|
{'^==',tdump},
|
||||||
{'^!=',tdump},
|
{'^!=',tdump},
|
||||||
|
|
Loading…
Reference in New Issue