diff options
author | Neil <nyamatongwe@gmail.com> | 2014-01-30 14:17:28 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-01-30 14:17:28 +1100 |
commit | 22aac66a749e8cddd8ab657563c58b4ebd647515 (patch) | |
tree | 9eb6fabe85842f011a6a9cc759914188b869194b | |
parent | e187f3f8d1567c821208a9033ca3119a46e5ee82 (diff) | |
download | scintilla-mirror-22aac66a749e8cddd8ab657563c58b4ebd647515.tar.gz |
Bug [#1574]. Fix 3.3.8 bug where external lexers became inaccessible.
-rw-r--r-- | doc/ScintillaHistory.html | 12 | ||||
-rw-r--r-- | src/ExternalLexer.h | 5 |
2 files changed, 15 insertions, 2 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index a9c7294e4..e49b4a96a 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -452,6 +452,18 @@ </li> </ul> <h3> + <a href="http://prdownloads.sourceforge.net/scintilla/scite339.zip?download">Release 3.3.9</a> + </h3> + <ul> + <li> + Released 28 January 2014. + </li> + <li> + Fix 3.3.8 bug where external lexers became inaccessible. + <a href="http://sourceforge.net/p/scintilla/bugs/1574/">Bug #1574</a>. + </li> + </ul> + <h3> <a href="http://prdownloads.sourceforge.net/scintilla/scite338.zip?download">Release 3.3.8</a> </h3> <ul> diff --git a/src/ExternalLexer.h b/src/ExternalLexer.h index 3f66aeb66..a85213e31 100644 --- a/src/ExternalLexer.h +++ b/src/ExternalLexer.h @@ -27,12 +27,13 @@ typedef LexerFactoryFunction(EXT_LEXER_DECL *GetLexerFactoryFunction)(unsigned i class ExternalLexerModule : public LexerModule { protected: GetLexerFactoryFunction fneFactory; + std::string name; public: ExternalLexerModule(int language_, LexerFunction fnLexer_, const char *languageName_=0, LexerFunction fnFolder_=0) : LexerModule(language_, fnLexer_, 0, fnFolder_), - fneFactory(0) { - languageName = languageName_; + fneFactory(0), name(languageName_){ + languageName = name.c_str(); } virtual void SetExternal(GetLexerFactoryFunction fFactory, int index); }; |