From 7434ebca8b4467adf800f0943d0dd2d6bd11cee9 Mon Sep 17 00:00:00 2001
From: nyamatongwe
There are methods to search for text and for regular expressions. The regular expression support
- is limited and should only be used for simple cases and initial development.
+ is limited and should only be used for simple cases and initial development. A different regular expression
+ library can be integrated into Scintilla
+ or can be called from the container using direct access to the buffer contents through
+ SCI_GETCHARACTERPOINTER.
Searching
@@ -5611,6 +5614,16 @@ EM_SETTARGETDEVICE
following the patterns of other lexers. The important thing is to include
LINK_LEXER(lmMyLexer);
to correspond with the LexerModule
lmMyLexer(...);
in your lexer source code.
A simple interface provides support for switching the Regular Expressions engine at
+ compile time. You must implement RegexSearchBase
for your chosen engine,
+ look at the built-in implementation BuiltinRegex
to see how this is done.
+ You then need to implement the factory method CreateRegexSearch
+ to create an instance of your class. You must disable the built-in implementation by defining
+ SCI_OWNREGEX
.