Rename "keyword2" to "type" and "keyword3" to "parameter".

Added some String overloaded functions.
This commit is contained in:
Martín Lucas Golini
2025-06-01 20:07:23 -03:00
parent 9a8ece04d6
commit c156b53e4b
151 changed files with 3903 additions and 4007 deletions

View File

@@ -395,12 +395,12 @@ void GitPlugin::updateStatusBarSync() {
auto insertedColor( getVarColor( "--theme-success" ) );
auto deletedColor( getVarColor( "--theme-error" ) );
patterns.emplace_back(
SyntaxPattern( { ".*%((%+%d+)%s/%s(%-%d+)%)" }, { "normal", "keyword", "keyword2" } ) );
SyntaxPattern( { ".*%((%+%d+)%s/%s(%-%d+)%)" }, { "normal", "keyword", "type" } ) );
SyntaxDefinition syntaxDef( "custom_build", {}, std::move( patterns ) );
SyntaxColorScheme scheme( "status_bar_git",
{ { "normal"_sst, { fontColor } },
{ "keyword"_sst, { insertedColor } },
{ "keyword2"_sst, { deletedColor } } },
{ "type"_sst, { deletedColor } } },
{} );
mStatusCustomTokenizer = { std::move( syntaxDef ), std::move( scheme ) };
}