diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/KeyWords.h | 12 | ||||
| -rw-r--r-- | include/Scintilla.h | 1 | ||||
| -rw-r--r-- | include/Scintilla.iface | 3 | 
3 files changed, 13 insertions, 3 deletions
| diff --git a/include/KeyWords.h b/include/KeyWords.h index cc81b73df..059ac0da0 100644 --- a/include/KeyWords.h +++ b/include/KeyWords.h @@ -20,15 +20,19 @@ protected:  	LexerFunction fnLexer;  	LexerFunction fnFolder;  	const char * const * wordListDescriptions; +	int styleBits;  	static const LexerModule *base;  	static int nextLanguage;  public:  	const char *languageName; -	LexerModule(int language_, LexerFunction fnLexer_,  -		const char *languageName_=0, LexerFunction fnFolder_=0, -		const char * const wordListDescriptions_[] = NULL); +	LexerModule(int language_,  +		LexerFunction fnLexer_,  +		const char *languageName_=0,  +		LexerFunction fnFolder_=0, +		const char * const wordListDescriptions_[] = NULL, +		int styleBits_=5);  	virtual ~LexerModule() {  	}  	int GetLanguage() const { return language; } @@ -37,6 +41,8 @@ public:  	int GetNumWordLists() const;  	const char *GetWordListDescription(int index) const; +	int GetStyleBitsNeeded() const; +  	virtual void Lex(unsigned int startPos, int lengthDoc, int initStyle,                    WordList *keywordlists[], Accessor &styler) const;  	virtual void Fold(unsigned int startPos, int lengthDoc, int initStyle, diff --git a/include/Scintilla.h b/include/Scintilla.h index 359db9c8f..cb91cba6f 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -616,6 +616,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,  #define SCI_GETPROPERTY 4008  #define SCI_GETPROPERTYEXPANDED 4009  #define SCI_GETPROPERTYINT 4010 +#define SCI_GETSTYLEBITSNEEDED 4011  #define SC_MOD_INSERTTEXT 0x1  #define SC_MOD_DELETETEXT 0x2  #define SC_MOD_CHANGESTYLE 0x4 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index b7a9b7d13..652d45858 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -1670,6 +1670,9 @@ fun int GetPropertyExpanded=4009(string key, stringresult buf)  # interpreted as an int AFTER any "$()" variable replacement.  get int GetPropertyInt=4010(string key,) +# Retrieve the number of bits the current lexer needs for styling. +get int GetStyleBitsNeeded=4011(,) +  # Notifications  # Type of modification and the action which caused the modification.  # These are defined as a bit mask to make it easy to specify which notifications are wanted. | 
