mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 18:16:31 +03:00
Fix CMakeLists.txt not being highlighted.
This commit is contained in:
@@ -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, "$" ) ) {
|
||||
|
||||
Reference in New Issue
Block a user