aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
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
commitf110286dbd0f760395105876637740816ba976c8 (patch)
tree5f2641a102c91e954d9e7c0fdc11254fde04052c /src
parent3c94e9cda2903272dde86b22dfa4bb2131ade270 (diff)
downloadscintilla-mirror-f110286dbd0f760395105876637740816ba976c8.tar.gz
Bug [#1574]. Fix 3.3.8 bug where external lexers became inaccessible.
Diffstat (limited to 'src')
-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);
};