This is a single lexer.
More...
#include <textlexer.h>
◆ TextLexer()
◆ ~TextLexer()
virtual edbee::TextLexer::~TextLexer |
( |
| ) |
|
|
inlinevirtual |
◆ grammar()
◆ lexRange()
virtual void edbee::TextLexer::lexRange |
( |
int |
beginOffset, |
|
|
int |
endOffset |
|
) |
| |
|
pure virtual |
This method is called when the given range needs to be lexed WARNING, this method must be VERY optimized and should 'remember' the lexing states between calls. To invalidate the scopes/lexing state the textReplaced method can be used.
- Parameters
-
beginOffset | the first offset |
endOffset | the last offset to |
Implemented in edbee::GrammarTextLexer.
◆ setGrammar()
void edbee::TextLexer::setGrammar |
( |
TextGrammar * |
grammar | ) |
|
This method is called to notify the lexer the grammar has been changed.
◆ textChanged()
◆ textDocument()
This method returns the text document.
◆ textScopes()
The documentation for this class was generated from the following files: