aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/LexerModule.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-05-16 16:57:48 +1000
committerNeil <nyamatongwe@gmail.com>2018-05-16 16:57:48 +1000
commit89206d94f9095ab9e3c9a8c0e5f3556c2d4b7333 (patch)
treea6dc0fee046ed65719bcb9cd96b2ed8334efb895 /lexlib/LexerModule.h
parentd6ebb097f16792bb33e9cf094a3907fbca1ecfda (diff)
downloadscintilla-mirror-89206d94f9095ab9e3c9a8c0e5f3556c2d4b7333.tar.gz
Move implementations into cxx file.
Replace 0 and NULL with nullptr. Update comments.
Diffstat (limited to 'lexlib/LexerModule.h')
-rw-r--r--lexlib/LexerModule.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/lexlib/LexerModule.h b/lexlib/LexerModule.h
index 050f0470d..e1d65e703 100644
--- a/lexlib/LexerModule.h
+++ b/lexlib/LexerModule.h
@@ -20,8 +20,9 @@ typedef ILexer4 *(*LexerFactoryFunction)();
/**
* A LexerModule is responsible for lexing and folding a particular language.
- * The class maintains a list of LexerModules which can be searched to find a
+ * The Catalogue class maintains a list of LexerModules which can be searched to find a
* module appropriate to a particular language.
+ * The ExternalLexerModule subclass holds lexers loaded from DLLs or shared libraries.
*/
class LexerModule {
protected:
@@ -35,20 +36,21 @@ protected:
public:
const char *languageName;
- LexerModule(int language_,
+ LexerModule(
+ int language_,
LexerFunction fnLexer_,
- const char *languageName_=0,
- LexerFunction fnFolder_=0,
- const char * const wordListDescriptions_[] = NULL,
+ const char *languageName_=nullptr,
+ LexerFunction fnFolder_= nullptr,
+ const char * const wordListDescriptions_[]=nullptr,
const LexicalClass *lexClasses_=nullptr,
size_t nClasses_=0);
- LexerModule(int language_,
+ LexerModule(
+ int language_,
LexerFactoryFunction fnFactory_,
const char *languageName_,
- const char * const wordListDescriptions_[] = NULL);
- virtual ~LexerModule() {
- }
- int GetLanguage() const { return language; }
+ const char * const wordListDescriptions_[]=nullptr);
+ virtual ~LexerModule();
+ int GetLanguage() const;
// -1 is returned if no WordList information is available
int GetNumWordLists() const;