From 8c9b09dd5f861e52590a154b2ad8ee0f0dc4e89f Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 31 Dec 2019 20:19:24 +1100 Subject: Backport: Implement SCI_SETILEXER. Backport of changeset 7871:ff54e1fc74f3, but with the ability to distinguish between ILexer and ILexer5 interfaces. --- include/Scintilla.h | 1 + include/Scintilla.iface | 3 +++ 2 files changed, 4 insertions(+) (limited to 'include') diff --git a/include/Scintilla.h b/include/Scintilla.h index cea4983e3..c2d289bab 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -1041,6 +1041,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_NAMEOFSTYLE 4030 #define SCI_TAGSOFSTYLE 4031 #define SCI_DESCRIPTIONOFSTYLE 4032 +#define SCI_SETILEXER 4033 #define SC_MOD_NONE 0x0 #define SC_MOD_INSERTTEXT 0x1 #define SC_MOD_DELETETEXT 0x2 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 05a0ed2ce..a3354de40 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -2963,6 +2963,9 @@ fun int TagsOfStyle=4031(int style, stringresult tags) # Result is NUL-terminated. fun int DescriptionOfStyle=4032(int style, stringresult description) +# Set the lexer from an ILexer*. +set void SetILexer=4033(, pointer ilexer) + # 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. -- cgit v1.2.3