mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-04 22:09:29 +03:00
Added a new tokenization method for the SyntaxTokenizer based on customized parsers. Initially is being used to parse numbers in C, C++ and JavaScript/TypeScript. This method is much more flexible and can be much faster than regex or lua patterns.
Improvets in AI Assistant. Fix regression in size calculation of a UIAbstractTableView. Fix in project search path filters.
This commit is contained in:
@@ -236,15 +236,26 @@ void ProjectSearch::find( const std::vector<std::string> files, std::string stri
|
||||
|
||||
for ( const auto& filter : pathFilters ) {
|
||||
bool matches = String::globMatch( fsv, filter.first );
|
||||
if ( ( matches && filter.second ) || ( !matches && !filter.second ) ) {
|
||||
|
||||
// if it's inverted and the file matches with the glob it must be ignored/excluded
|
||||
if ( filter.second && matches ) {
|
||||
skip = true;
|
||||
break;
|
||||
}
|
||||
|
||||
// if the file is not inverted and the file matches with the glob, then it must be
|
||||
// not skiped
|
||||
if ( !filter.second && matches ) {
|
||||
skip = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ( skip ) {
|
||||
search[pos++] = false;
|
||||
continue;
|
||||
}
|
||||
|
||||
search[pos++] = true;
|
||||
count++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user