diff options
author | Neil <nyamatongwe@gmail.com> | 2017-06-22 17:43:56 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-06-22 17:43:56 +1000 |
commit | 3a993f0a5e97435874e06d5496085c4cb7a0d4cb (patch) | |
tree | f1bfbd0aa566e23e67d9340f5fde763ba3621278 /lexlib/LexerBase.cxx | |
parent | 6c72bb1aba1b8b0cea4bd5360f94847316166a92 (diff) | |
download | scintilla-mirror-3a993f0a5e97435874e06d5496085c4cb7a0d4cb.tar.gz |
Backport: Add style metadata methods with null implementations.
Backport based on changesets 6345:faecbd0078e5 and 6346:72bd27f81477.
Diffstat (limited to 'lexlib/LexerBase.cxx')
-rw-r--r-- | lexlib/LexerBase.cxx | 58 |
1 files changed, 57 insertions, 1 deletions
diff --git a/lexlib/LexerBase.cxx b/lexlib/LexerBase.cxx index 71e2601dc..5ebbe0958 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 lvMetaData; } const char * SCI_METHOD LexerBase::PropertyNames() { @@ -85,5 +87,59 @@ 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; +} + +int SCI_METHOD LexerBase::NamedStyles() { return 0; } + +const char * SCI_METHOD LexerBase::NameOfStyle(int) { + return ""; +} + +const char * SCI_METHOD LexerBase::TagsOfStyle(int) { + return ""; +} + +const char * SCI_METHOD LexerBase::DescriptionOfStyle(int) { + return ""; +} |