17 class MultiLineScopedTextRange;
19 class ScopedTextRange;
20 class ScopedTextRangeList;
21 class TextDocumentScopes;
23 class TextGrammarRule;
35 virtual bool lexLine(
int line,
int& currentDocOffset );
38 virtual void lexLines(
int line,
int lineCount );
39 virtual void lexRange(
int beginOffset,
int endOffset );
43 RegExp* createEndRegExp(
RegExp* startRegExp,
const QString &endRegExpStringIn);
46 void processCaptures(
RegExp *foundRegExp,
const QMap<int,QString>* foundCaptures );
48 TextGrammarRule* findAndApplyNextGrammarRule(
int currentDocOffset,
const QString& line,
int& offsetInLine );
53 void popActiveRange();
60 QVector<MultiLineScopedTextRange*> activeMultiLineRangesRefList_;
61 QVector<MultiLineScopedTextRange*> currentMultiLineRangeList_;
62 QVector<MultiLineScopedTextRange*> closedMultiRangesRangesRefList_;
64 QVector<ScopedTextRange*> activeScopedRangesRefList_;
virtual void lexRange(int beginOffset, int endOffset)
This method is called when the given range needs to be lexed.
Definition: grammartextlexer.cpp:514
This clas represents a text buffer change and is used to pass around between events This is a sharedd...
Definition: textbuffer.h:45
virtual ~GrammarTextLexer()
The destructor.
Definition: grammartextlexer.cpp:32
This class 'defines' a single document scope.
Definition: textdocumentscopes.h:257
defines a single grammar rule
Definition: textgrammar.h:24
A simple lexer matches texts with simple regular expressions.
Definition: grammartextlexer.h:26
GrammarTextLexer(TextDocumentScopes *scopes)
Constructs the grammar textlexer.
Definition: grammartextlexer.cpp:23
virtual void textChanged(const TextBufferChange &change)
This method is called to notify the lexer some data has been changed.
Definition: grammartextlexer.cpp:341
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Definition: commentcommand.cpp:22
A class for matching QStrings with the Oniguruma API We need this Regular Expression library to be ab...
Definition: regexp.h:36
a list of textscopes This class is used for single-line scopes (Todo, this needs to be optimized) ...
Definition: textdocumentscopes.h:223
A base scoped text range.
Definition: textdocumentscopes.h:178
This class is used to 'contain' all document scope information.
Definition: textdocumentscopes.h:325
virtual void lexLines(int line, int lineCount)
This method lexes a range of line.
Definition: grammartextlexer.cpp:456
This is a single lexer.
Definition: textlexer.h:17