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.
---
doc/ScintillaDoc.html | 11 ++++++++++-
doc/ScintillaHistory.html | 11 +++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)
(limited to 'doc')
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html
index b3fe1e553..e9f3471c0 100644
--- a/doc/ScintillaDoc.html
+++ b/doc/ScintillaDoc.html
@@ -6857,6 +6857,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(bool iLexer5, pointer lexer)
SCI_LOADLEXERLIBRARY(bool iLexer5, const char
*path)
SCI_COLOURISE(position start, position end)
@@ -6907,7 +6908,15 @@ 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.
- To test if your lexer assignment worked, use SCI_SETILEXER(bool iLexer5, pointer lexer)
+ SCI_SETILEXER allows setting a lexer as an ILexer*.
+ The lexer may be implemented by an application or a shared library such as Lexilla.
+ iLexer5 indicates whether or not the library contains Scintilla lexers that implement
+ the ILexer5 interface defined in Scintilla 4.3+ (e.g. Lexilla). The default is to assume lexers
+ implement the ILexer interface defined in Scintilla 3.x. This flag must be set explicitly and
+ cannot be inferred.
+
+ 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 0f515ca91..ecc299dcd 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -559,6 +559,17 @@
+
+ -
+ Released 9 May 2020.
+
+ -
+ SCI_SETILEXER implemented to use lexers from Lexilla or other sources.
+
+
+
-
Released 9 May 2020.
--
cgit v1.2.3