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.h | |
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.h')
-rw-r--r-- | lexlib/LexerBase.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lexlib/LexerBase.h b/lexlib/LexerBase.h index ddc561c5c..f0378916f 100644 --- a/lexlib/LexerBase.h +++ b/lexlib/LexerBase.h @@ -13,7 +13,7 @@ namespace Scintilla { #endif // A simple lexer with no state -class LexerBase : public ILexer { +class LexerBase : public ILexer4 { protected: PropSetSimple props; enum {numWordLists=KEYWORDSET_MAX+1}; @@ -32,6 +32,16 @@ public: void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, IDocument *pAccess) override = 0; void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, IDocument *pAccess) override = 0; void * SCI_METHOD PrivateCall(int operation, void *pointer) override; + int SCI_METHOD LineEndTypesSupported() override; + int SCI_METHOD AllocateSubStyles(int styleBase, int numberStyles) override; + int SCI_METHOD SubStylesStart(int styleBase) override; + int SCI_METHOD SubStylesLength(int styleBase) override; + int SCI_METHOD StyleFromSubStyle(int subStyle) override; + int SCI_METHOD PrimaryStyleFromStyle(int style) override; + void SCI_METHOD FreeSubStyles() override; + void SCI_METHOD SetIdentifiers(int style, const char *identifiers) override; + int SCI_METHOD DistanceToSecondaryStyles() override; + const char * SCI_METHOD GetSubStyleBases() override; }; #ifdef SCI_NAMESPACE |