aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ExternalLexer.h
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 /src/ExternalLexer.h
parente187f3f8d1567c821208a9033ca3119a46e5ee82 (diff)
downloadscintilla-mirror-22aac66a749e8cddd8ab657563c58b4ebd647515.tar.gz
Bug [#1574]. Fix 3.3.8 bug where external lexers became inaccessible.
Diffstat (limited to 'src/ExternalLexer.h')
-rw-r--r--src/ExternalLexer.h5
1 files changed, 3 insertions, 2 deletions
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);
};