aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-01-30 14:17:28 +1100
committerNeil <nyamatongwe@gmail.com>2014-01-30 14:17:28 +1100
commit22aac66a749e8cddd8ab657563c58b4ebd647515 (patch)
tree9eb6fabe85842f011a6a9cc759914188b869194b
parente187f3f8d1567c821208a9033ca3119a46e5ee82 (diff)
downloadscintilla-mirror-22aac66a749e8cddd8ab657563c58b4ebd647515.tar.gz
Bug [#1574]. Fix 3.3.8 bug where external lexers became inaccessible.
-rw-r--r--doc/ScintillaHistory.html12
-rw-r--r--src/ExternalLexer.h5
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);
};