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:
Martín Lucas Golini
2025-03-28 02:15:20 -03:00
parent d003e49319
commit f721ef92df
17 changed files with 1164 additions and 100 deletions

View File

@@ -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++;
}