aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-09-03 18:25:32 +1000
committerNeil <nyamatongwe@gmail.com>2013-09-03 18:25:32 +1000
commit77e3727bdd5c981c338fd1c0bc073393aa2f5068 (patch)
tree14ab874e81b5216e3f4154d94a9b14da76f48bd2 /include
parente27fc2d13734da7861ca1c640143b172927f25a6 (diff)
downloadscintilla-mirror-77e3727bdd5c981c338fd1c0bc073393aa2f5068.tar.gz
Added GetStyleFromSubStyle.
Tests for this and other sub styles methods.
Diffstat (limited to 'include')
-rw-r--r--include/ILexer.h1
-rw-r--r--include/Scintilla.h1
-rw-r--r--include/Scintilla.iface3
3 files changed, 5 insertions, 0 deletions
diff --git a/include/ILexer.h b/include/ILexer.h
index e93de819a..16ae4a28f 100644
--- a/include/ILexer.h
+++ b/include/ILexer.h
@@ -75,6 +75,7 @@ public:
virtual int SCI_METHOD AllocateSubStyles(int styleBase, int numberStyles) = 0;
virtual int SCI_METHOD SubStylesStart(int styleBase) = 0;
virtual int SCI_METHOD SubStylesLength(int styleBase) = 0;
+ virtual int SCI_METHOD StyleFromSubStyle(int subStyle) = 0;
virtual void SCI_METHOD FreeSubStyles() = 0;
virtual void SCI_METHOD SetIdentifiers(int style, const char *identifiers) = 0;
virtual int SCI_METHOD DistanceToSecondaryStyles() = 0;
diff --git a/include/Scintilla.h b/include/Scintilla.h
index 405cc81f7..8391bae3e 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -997,6 +997,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define SCI_ALLOCATESUBSTYLES 4020
#define SCI_GETSUBSTYLESSTART 4021
#define SCI_GETSUBSTYLESLENGTH 4022
+#define SCI_GETSTYLEFROMSUBSTYLE 4027
#define SCI_FREESUBSTYLES 4023
#define SCI_SETIDENTIFIERS 4024
#define SCI_DISTANCETOSECONDARYSTYLES 4025
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index a2170501f..b5ba48f65 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -4403,6 +4403,9 @@ get int GetSubStylesStart=4021(int styleBase,)
# The number of sub styles associated with a base style
get int GetSubStylesLength=4022(int styleBase,)
+# For a sub style, return the base style, else return the argument.
+get int GetStyleFromSubStyle=4027(int subStyle,)
+
# Free allocated sub styles
fun void FreeSubStyles=4023(,)