| 677 | } |
| 678 | |
| 679 | std::vector<std::string> SyntaxDefinitionManager::getExtensionsPatternsSupported() const { |
| 680 | Lock l( mMutex ); |
| 681 | std::unordered_set<std::string> exts; |
| 682 | exts.reserve( mDefinitions.size() ); |
| 683 | for ( auto& definition : mDefinitions ) |
| 684 | for ( auto& pattern : definition->getFiles() ) |
| 685 | exts.insert( pattern ); |
| 686 | |
| 687 | for ( auto& preDefinition : mPreDefinitions ) |
| 688 | for ( auto& pattern : preDefinition.getFiles() ) |
| 689 | exts.insert( pattern ); |
| 690 | |
| 691 | std::vector<std::string> vexts; |
| 692 | vexts.reserve( exts.size() ); |
| 693 | for ( auto& ext : exts ) |
| 694 | vexts.emplace_back( std::move( ext ) ); |
| 695 | std::sort( vexts.begin(), vexts.end() ); |
| 696 | return vexts; |
| 697 | } |
| 698 | |
| 699 | const SyntaxDefinition* SyntaxDefinitionManager::getPtrByLSPName( const std::string& name ) const { |
| 700 | Lock l( mMutex ); |