10#ifndef CATALOGUEMODULES_H
11#define CATALOGUEMODULES_H
20 if (lm->GetLanguage() == language) {
30 if (lm->languageName && (0 == strcmp(lm->languageName, languageName))) {
42 unsigned int Count() const noexcept {
46 const char *
Name(
unsigned int index)
const noexcept {
const char * Name(unsigned int index) const noexcept
const LexerModule * Find(const char *languageName) const noexcept
void AddLexerModule(LexerModule *plm)
unsigned int Count() const noexcept
LexerFactoryFunction Factory(unsigned int index) const noexcept
const LexerModule * Find(int language) const
std::vector< LexerModule * > lexerCatalogue
ILexer * Create(unsigned int index) const
A LexerModule is responsible for lexing and folding a particular language.
Styling buffer using one element for each run rather than using a filled buffer.
ILexer *(* LexerFactoryFunction)()