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},
|
||||
{'^%-%-%[(=*)%[.-%]%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},
|
||||
|
|
Loading…
Reference in New Issue