diff options
author | nyamatongwe <devnull@localhost> | 2010-07-13 21:30:08 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-07-13 21:30:08 +1000 |
commit | 253d170b5b6d2625b6f7edb0aa1a57907909add2 (patch) | |
tree | cd474628929245e5e5607133a3f31a6994c82524 | |
parent | 653eedecf2404f9022a65e2cc25eead25ada6d47 (diff) | |
download | scintilla-mirror-253d170b5b6d2625b6f7edb0aa1a57907909add2.tar.gz |
New interface features for new lexer infrastructure.
-rw-r--r-- | include/Scintilla.h | 5 | ||||
-rw-r--r-- | include/Scintilla.iface | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h index efb536742..f486efbde 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -786,6 +786,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_GETADDITIONALCARETFORE 2605 #define SCI_ROTATESELECTION 2606 #define SCI_SWAPMAINANCHORCARET 2607 +#define SCI_CHANGELEXERSTATE 2617 #define SCI_STARTRECORD 3001 #define SCI_STOPRECORD 3002 #define SCI_SETLEXER 4001 @@ -801,6 +802,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_GETPROPERTYINT 4010 #define SCI_GETSTYLEBITSNEEDED 4011 #define SCI_GETLEXERLANGUAGE 4012 +#define SCI_PRIVATELEXERCALL 4013 #define SC_MOD_INSERTTEXT 0x1 #define SC_MOD_DELETETEXT 0x2 #define SC_MOD_CHANGESTYLE 0x4 @@ -820,7 +822,8 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SC_MOD_CHANGEMARGIN 0x10000 #define SC_MOD_CHANGEANNOTATION 0x20000 #define SC_MOD_CONTAINER 0x40000 -#define SC_MODEVENTMASKALL 0x7FFFF +#define SC_MOD_LEXERSTATE 0x80000 +#define SC_MODEVENTMASKALL 0xFFFFF #define SCEN_CHANGE 768 #define SCEN_SETFOCUS 512 #define SCEN_KILLFOCUS 256 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index f40530fda..a32799b5b 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -2089,6 +2089,10 @@ fun void RotateSelection=2606(,) # Swap that caret and anchor of the main selection. fun void SwapMainAnchorCaret=2607(,) +# Indicate that the internal state of a lexer has changed over a range and therefore +# there may be a need to redraw. +fun int ChangeLexerState=2617(position start, position end) + # Start notifying the container of all key presses and commands. fun void StartRecord=3001(,) @@ -2137,6 +2141,9 @@ get int GetStyleBitsNeeded=4011(,) # Return the length of the text. get int GetLexerLanguage=4012(, stringresult text) +# For private communication between an application and a known lexer. +fun int PrivateLexerCall=4013(int operation, int pointer) + # 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. @@ -2161,7 +2168,8 @@ val SC_MOD_CHANGELINESTATE=0x8000 val SC_MOD_CHANGEMARGIN=0x10000 val SC_MOD_CHANGEANNOTATION=0x20000 val SC_MOD_CONTAINER=0x40000 -val SC_MODEVENTMASKALL=0x7FFFF +val SC_MOD_LEXERSTATE=0x80000 +val SC_MODEVENTMASKALL=0xFFFFF # For compatibility, these go through the COMMAND notification rather than NOTIFY # and should have had exactly the same values as the EN_* constants. |