| 1171 | } |
| 1172 | |
| 1173 | void SyntaxDefinitionManager::loadFromFolder( const std::string& folderPath ) { |
| 1174 | if ( !FileSystem::isDirectory( folderPath ) ) |
| 1175 | return; |
| 1176 | auto files = FileSystem::filesInfoGetInPath( folderPath ); |
| 1177 | if ( files.empty() ) |
| 1178 | return; |
| 1179 | for ( const auto& file : files ) { |
| 1180 | if ( file.isRegularFile() && file.isReadable() && file.getExtension() == "json" ) |
| 1181 | loadFromFile( file.getFilepath() ); |
| 1182 | } |
| 1183 | } |
| 1184 | |
| 1185 | std::vector<const SyntaxDefinition*> |
| 1186 | SyntaxDefinitionManager::languagesThatSupportExtension( std::string extension ) const { |
no test coverage detected