21#include "LexerModule.h"
25using namespace Scintilla;
31const LexerModule *Catalogue::Find(
int language) {
33 for (std::vector<LexerModule *>::iterator it=
lexerCatalogue.begin();
35 if ((*it)->GetLanguage() == language) {
42const LexerModule *Catalogue::Find(
const char *languageName) {
45 for (std::vector<LexerModule *>::iterator it=
lexerCatalogue.begin();
47 if ((*it)->languageName && (0 == strcmp((*it)->languageName, languageName))) {
55void Catalogue::AddLexerModule(LexerModule *plm) {
74 static int initialised = 0;
80#define LINK_LEXER(lexer) extern LexerModule lexer; Catalogue::AddLexerModule(&lexer);
#define LINK_LEXER(lexer)
int wxForceScintillaLexers(void)
int Scintilla_LinkLexers()
static std::vector< LexerModule * > lexerCatalogue
LexerModule lmMatlab(SCLEX_MATLAB, ColouriseMatlabDoc, "matlab", FoldMatlabDoc, matlabWordListDesc)
LexerModule lmOctave(SCLEX_OCTAVE, ColouriseOctaveDoc, "octave", FoldOctaveDoc, octaveWordListDesc)
LexerModule lmLatex(SCLEX_LATEX, ColouriseLatexDoc, "latex", 0, emptyWordListDesc)
LexerModule lmMake(SCLEX_MAKEFILE, ColouriseMakeDoc, "makefile", 0, emptyWordListDesc)
LexerModule lmNSCR(SCLEX_NSCR, LexerNSCR::LexerFactoryNSCR, "NSCR", NSCRWordLists)
LexerModule lmDiff(SCLEX_DIFF, ColouriseDiffDoc, "diff", FoldDiffDoc, emptyWordListDesc)
LexerModule lmErrorList(SCLEX_ERRORLIST, ColouriseErrorListDoc, "errorlist", 0, emptyWordListDesc)
LexerModule lmBatch(SCLEX_BATCH, ColouriseBatchDoc, "batch", 0, batchWordListDesc)
LexerModule lmPo(SCLEX_PO, ColourisePoDoc, "po", 0, emptyWordListDesc)
LexerModule lmNPRC(SCLEX_NPRC, LexerNPRC::LexerFactoryNPRC, "NPRC", NPRCWordLists)
LexerModule lmProps(SCLEX_PROPERTIES, ColourisePropsDoc, "props", FoldPropsDoc, emptyWordListDesc)
LexerModule lmTXTADV(SCLEX_TXTADV, LexerTXTADV::LexerFactoryTXTADV, "TXTADV", emptyWordListDesc)
LexerModule lmNull(SCLEX_NULL, ColouriseNullDoc, "null")