mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-28 17:16:29 +03:00
Fix in highlighting for some rare lua patterns.
This commit is contained in:
@@ -397,7 +397,10 @@ _tokenize( const SyntaxDefinition& syntax, const std::string& text, const Syntax
|
||||
int fullMatchEnd = matches[0].end;
|
||||
|
||||
if ( pattern.matchType == SyntaxPatternMatchType::RegEx ||
|
||||
pattern.matchType == SyntaxPatternMatchType::Parser ) {
|
||||
pattern.matchType == SyntaxPatternMatchType::Parser ||
|
||||
std::find_if( matches.begin(), matches.end(), []( auto match ) {
|
||||
return match.start == match.end;
|
||||
} ) != matches.end() ) {
|
||||
priorityMap.clear();
|
||||
priorityMap.resize( fullMatchEnd - fullMatchStart, 0 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user