aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-07-13 21:48:32 +1000
committernyamatongwe <unknown>2010-07-13 21:48:32 +1000
commitee2c46efdf68f3708f968cda178ec76989075f24 (patch)
tree84e0e0e545a3d1d5f1b481b851587a8f0142363e
parent8855099f0f8b0bf9720de04c8b188f577d4f932f (diff)
downloadscintilla-mirror-ee2c46efdf68f3708f968cda178ec76989075f24.tar.gz
Split OptionSet out into its own file.
Provide API access to lexer options metadata - property names, types, descriptions and word list descriptions.
-rw-r--r--include/Scintilla.h7
-rw-r--r--include/Scintilla.iface17
2 files changed, 24 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index f486efbde..16137ca1d 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -803,6 +803,13 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define SCI_GETSTYLEBITSNEEDED 4011
#define SCI_GETLEXERLANGUAGE 4012
#define SCI_PRIVATELEXERCALL 4013
+#define SCI_PROPERTYNAMES 4014
+#define SC_TYPE_BOOLEAN 0
+#define SC_TYPE_INTEGER 1
+#define SC_TYPE_STRING 2
+#define SCI_PROPERTYTYPE 4015
+#define SCI_DESCRIBEPROPERTY 4016
+#define SCI_DESCRIBEKEYWORDSETS 4017
#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 a32799b5b..418b29726 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -2144,6 +2144,23 @@ get int GetLexerLanguage=4012(, stringresult text)
# For private communication between an application and a known lexer.
fun int PrivateLexerCall=4013(int operation, int pointer)
+# Retrieve a '\n' separated list of properties understood by the current lexer.
+fun int PropertyNames=4014(, stringresult names)
+
+enu TypeProperty=SC_TYPE_
+val SC_TYPE_BOOLEAN=0
+val SC_TYPE_INTEGER=1
+val SC_TYPE_STRING=2
+
+# Retrieve the type of a property.
+fun int PropertyType=4015(string name,)
+
+# Describe a property.
+fun int DescribeProperty=4016(string name, stringresult description)
+
+# Retrieve a '\n' separated list of descriptions of the keyword sets understood by the current lexer.
+fun int DescribeKeyWordSets=4017(, stringresult descriptions)
+
# 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.