#include <scripthighlighter.hpp>
List of all members.
Public Types |
enum | Type {
Type_Int,
Type_Float,
Type_Name,
Type_Keyword,
Type_Special,
Type_Comment,
Type_Id
} |
Public Member Functions |
| ScriptHighlighter (const CSMWorld::Data &data, QTextDocument *parent) |
virtual void | highlightBlock (const QString &text) |
void | invalidateIds () |
Private Member Functions |
virtual bool | parseInt (int value, const Compiler::TokenLoc &loc, Compiler::Scanner &scanner) |
virtual bool | parseFloat (float value, const Compiler::TokenLoc &loc, Compiler::Scanner &scanner) |
virtual bool | parseName (const std::string &name, const Compiler::TokenLoc &loc, Compiler::Scanner &scanner) |
virtual bool | parseKeyword (int keyword, const Compiler::TokenLoc &loc, Compiler::Scanner &scanner) |
virtual bool | parseSpecial (int code, const Compiler::TokenLoc &loc, Compiler::Scanner &scanner) |
virtual bool | parseComment (const std::string &comment, const Compiler::TokenLoc &loc, Compiler::Scanner &scanner) |
virtual void | parseEOF (Compiler::Scanner &scanner) |
| Handle EOF token.
|
void | highlight (const Compiler::TokenLoc &loc, Type type) |
Private Attributes |
Compiler::NullErrorHandler | mErrorHandler |
Compiler::Extensions | mExtensions |
CSMWorld::ScriptContext | mContext |
std::map< Type, QTextCharFormat > | mScheme |
Member Enumeration Documentation
- Enumerator:
Type_Int |
|
Type_Float |
|
Type_Name |
|
Type_Keyword |
|
Type_Special |
|
Type_Comment |
|
Type_Id |
|
Constructor & Destructor Documentation
- Todo:
- replace this with user settings
Member Function Documentation
Handle comment token.
- Returns:
- fetch another token?
Reimplemented from Compiler::Parser.
Handle a float token.
- Returns:
- fetch another token?
Reimplemented from Compiler::Parser.
Handle an int token.
- Returns:
- fetch another token?
Reimplemented from Compiler::Parser.
Handle a keyword token.
- Returns:
- fetch another token?
Reimplemented from Compiler::Parser.
Handle a name token.
- Returns:
- fetch another token?
Reimplemented from Compiler::Parser.
Handle a special character token.
- Returns:
- fetch another token?
Reimplemented from Compiler::Parser.
Member Data Documentation
The documentation for this class was generated from the following files: