| 272 | } |
| 273 | |
| 274 | SyntaxStyleType SyntaxDefinition::getSymbol( std::string_view symbol ) const { |
| 275 | auto it = |
| 276 | mSymbolsHashes.find( mCaseInsensitive ? toLowerAndHash( symbol ) : String::hash( symbol ) ); |
| 277 | if ( it != mSymbolsHashes.end() ) |
| 278 | return it->second; |
| 279 | return SyntaxStyleEmpty(); |
| 280 | } |
| 281 | |
| 282 | SyntaxDefinition& SyntaxDefinition::addFileType( const std::string& fileType ) { |
| 283 | mFiles.push_back( fileType ); |
no test coverage detected