From 0af155eae811e515b7d4fbad8e198cdf01f6ff2f Mon Sep 17 00:00:00 2001
From: Neil
Date: Tue, 31 Dec 2019 20:19:24 +1100
Subject: Implement SCI_SETILEXER.
---
doc/ScintillaDoc.html | 10 +++++++++-
doc/ScintillaHistory.html | 3 +++
2 files changed, 12 insertions(+), 1 deletion(-)
(limited to 'doc')
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html
index 53bfec16a..b4eae90ea 100644
--- a/doc/ScintillaDoc.html
+++ b/doc/ScintillaDoc.html
@@ -269,7 +269,7 @@
Lexilla
For Scintilla 5.0, lexers will be split off into a separate Lexilla library.
- Scintilla will be responsible for the GUI and calling lexers and Lexilla will provide the lexers.
+ Scintilla will be responsible for the GUI and calling lexers with Lexilla providing the lexers.
To allow work towards this with Scintilla 4.x, the first stage is to allow building Lexilla but
also include the lexers in Scintilla.
@@ -288,6 +288,9 @@
is exposed which will create a lexer object (ILexer5 *) for any object lexer or function lexer.
+ A lexer created by Lexilla may be used in Scintilla by calling
+ SCI_SETILEXER.
+
Contents
@@ -6891,6 +6894,7 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){
SCI_SETLEXERLANGUAGE(<unused>, const char
*language)
SCI_GETLEXERLANGUAGE(<unused>, char *language) → int
+ SCI_SETILEXER(<unused>, pointer lexer)
SCI_LOADLEXERLIBRARY(<unused>, const char
*path)
SCI_COLOURISE(position start, position end)
@@ -6941,6 +6945,10 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){
Lex*.cxx file and search for LexerModule. The third argument in the
LexerModule constructor is the name to use.
+ SCI_SETILEXER(<unused>, pointer lexer)
+ SCI_SETILEXER allows setting a lexer as an ILexer5*.
+ The lexer may be implemented by an application or a shared library such as Lexilla.
+
To test if your lexer assignment worked, use SCI_GETLEXER before and after setting the new lexer to
see if the lexer number changed.
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html
index 282118ded..af9c8a49c 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -570,6 +570,9 @@
Lexers made available as Lexilla library.
+ SCI_SETILEXER implemented to use lexers from Lexilla or other sources.
+
+
ILexer5 interface defined provisionally to support use of Lexilla.
The details of this interface may change before being stabilised in Scintilla 5.0.
--
cgit v1.2.3