diff options
| author | Neil <nyamatongwe@gmail.com> | 2017-06-22 17:25:07 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2017-06-22 17:25:07 +1000 | 
| commit | e7375474b0697983b727a1efd32eb8b6bbbbd00d (patch) | |
| tree | 157998ee0755ada4429c080a00a173eb84b07344 /lexlib/LexerBase.cxx | |
| parent | 3cd8489f5082c7b95fe5be45caf7fbdfc191f056 (diff) | |
| download | scintilla-mirror-e7375474b0697983b727a1efd32eb8b6bbbbd00d.tar.gz | |
Merge Ilexer and ILexerWithSubStyles into ILexer4 to avoid need for version
checking in 4.0. Use lvRelease4 ID.
Diffstat (limited to 'lexlib/LexerBase.cxx')
| -rw-r--r-- | lexlib/LexerBase.cxx | 42 | 
1 files changed, 41 insertions, 1 deletions
| diff --git a/lexlib/LexerBase.cxx b/lexlib/LexerBase.cxx index 71e2601dc..232b110c4 100644 --- a/lexlib/LexerBase.cxx +++ b/lexlib/LexerBase.cxx @@ -24,6 +24,8 @@  using namespace Scintilla;  #endif +static const char styleSubable[] = { 0 }; +  LexerBase::LexerBase() {  	for (int wl = 0; wl < numWordLists; wl++)  		keyWordLists[wl] = new WordList; @@ -43,7 +45,7 @@ void SCI_METHOD LexerBase::Release() {  }  int SCI_METHOD LexerBase::Version() const { -	return lvOriginal; +	return lvRelease4;  }  const char * SCI_METHOD LexerBase::PropertyNames() { @@ -85,5 +87,43 @@ Sci_Position SCI_METHOD LexerBase::WordListSet(int n, const char *wl) {  }  void * SCI_METHOD LexerBase::PrivateCall(int, void *) { +	return nullptr; +} + +int SCI_METHOD LexerBase::LineEndTypesSupported() { +	return SC_LINE_END_TYPE_DEFAULT; +} + +int SCI_METHOD LexerBase::AllocateSubStyles(int, int) { +	return -1; +} + +int SCI_METHOD LexerBase::SubStylesStart(int) { +	return -1; +} + +int SCI_METHOD LexerBase::SubStylesLength(int) { +	return 0; +} + +int SCI_METHOD LexerBase::StyleFromSubStyle(int subStyle) { +	return subStyle; +} + +int SCI_METHOD LexerBase::PrimaryStyleFromStyle(int style) { +	return style; +} + +void SCI_METHOD LexerBase::FreeSubStyles() { +} + +void SCI_METHOD LexerBase::SetIdentifiers(int, const char *) { +} + +int SCI_METHOD LexerBase::DistanceToSecondaryStyles() {  	return 0;  } + +const char * SCI_METHOD LexerBase::GetSubStyleBases() { +	return styleSubable; +} | 
