Fix CMakeLists.txt not being highlighted.

This commit is contained in:
Martín Lucas Golini
2025-01-17 16:02:11 -03:00
parent a43f7441b2
commit ebbb1aed6d

View File

@@ -612,6 +612,9 @@ const SyntaxDefinition& SyntaxDefinitionManager::getByExtension( const std::stri
if ( !extension.empty() ) {
for ( const auto& style : mDefinitions ) {
if ( &style == &mDefinitions[0] ) // Ignore Plain text
continue;
for ( const auto& ext : style.getFiles() ) {
if ( String::startsWith( ext, "%." ) || String::startsWith( ext, "^" ) ||
String::endsWith( ext, "$" ) ) {