From ae4556924ac22c57b7a74376522c7a37b047d90d Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 9 Sep 2020 09:34:44 +1000 Subject: Added information on lexer library functions SetLibraryProperty and GetLibraryPropertyNames. --- doc/ScintillaDoc.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index d4bea6b60..1110f7e46 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -119,7 +119,7 @@

Scintilla Documentation

-

Last edited 29 March 2020 NH

+

Last edited 9 September 2020 NH

There is an overview of the internal design of Scintilla.
@@ -289,6 +289,16 @@ As the protocol only supports object lexers, an additional function CreateLexer(const char *name) is exposed which will create a lexer object (ILexer5 *) for any object lexer or function lexer.

+ +

Lexer libraries that provide the same functions as Lexilla may provide lexers for use by Scintilla, + augmenting or replacing those provided by Lexilla. + To allow initialisation of lexer libraries, a SetLibraryProperty(const char *key, const char *value) + may optionally be implemented. For example, a lexer library that uses XML based lexer definitions may + be provided with a directory to search for such definitions. + Lexer libraries should ignore any properties that they do not understand. + The set of properties supported by a lexer library is specified as a '\n' separated list of property names by + an optional const char *GetLibraryPropertyNames() function. +

A lexer created by Lexilla may be used in Scintilla by calling SCI_SETILEXER.

-- cgit v1.2.3