1 #ifndef CSV_WORLD_SCRIPTHIGHLIGHTER_H
2 #define CSV_WORLD_SCRIPTHIGHLIGHTER_H
6 #include <QSyntaxHighlighter>
12 #include "../../model/world/scriptcontext.hpp"
Mode
Definition: scripthighlighter.hpp:36
void highlight(const Compiler::TokenLoc &loc, Type type)
Definition: scripthighlighter.cpp:66
Definition: scripthighlighter.hpp:40
bool settingChanged(const CSMPrefs::Setting *setting)
Definition: scripthighlighter.cpp:113
Definition: scriptcontext.hpp:15
void invalidateIds()
Definition: scripthighlighter.cpp:108
virtual bool parseName(const std::string &name, const Compiler::TokenLoc &loc, Compiler::Scanner &scanner)
Definition: scripthighlighter.cpp:25
Type
Definition: scripthighlighter.hpp:25
Definition: scripthighlighter.hpp:28
virtual void highlightBlock(const QString &text)
Definition: scripthighlighter.cpp:95
virtual bool parseComment(const std::string &comment, const Compiler::TokenLoc &loc, Compiler::Scanner &scanner)
Definition: scripthighlighter.cpp:56
Definition: scripthighlighter.hpp:32
CSMWorld::ScriptContext mContext
Definition: scripthighlighter.hpp:47
Location of a token in a source file.
Definition: tokenloc.hpp:10
std::map< Type, QTextCharFormat > mScheme
Definition: scripthighlighter.hpp:48
Compiler::NullErrorHandler mErrorHandler
Definition: scripthighlighter.hpp:45
virtual void parseEOF(Compiler::Scanner &scanner)
Handle EOF token.
Definition: scripthighlighter.cpp:63
virtual bool parseFloat(float value, const Compiler::TokenLoc &loc, Compiler::Scanner &scanner)
Definition: scripthighlighter.cpp:18
Definition: scripthighlighter.hpp:31
Error handler implementation: Ignore all error messages.
Definition: nullerrorhandler.hpp:10
Definition: scripthighlighter.hpp:30
Collection of compiler extensions.
Definition: extensions.hpp:39
Definition: scripthighlighter.hpp:38
virtual bool parseInt(int value, const Compiler::TokenLoc &loc, Compiler::Scanner &scanner)
Definition: scripthighlighter.cpp:11
virtual bool parseSpecial(int code, const Compiler::TokenLoc &loc, Compiler::Scanner &scanner)
Definition: scripthighlighter.cpp:49
Definition: scripthighlighter.hpp:27
Definition: setting.hpp:22
Definition: scripthighlighter.hpp:29
ScriptHighlighter(const CSMWorld::Data &data, Mode mode, QTextDocument *parent)
Definition: scripthighlighter.cpp:78
Definition: scripthighlighter.hpp:39
int code
Definition: crashcatcher.cpp:70
Compiler::Extensions mExtensions
Definition: scripthighlighter.hpp:46
Mode mMode
Definition: scripthighlighter.hpp:49
Definition: scripthighlighter.hpp:21
Definition: scripthighlighter.hpp:33
Parser base class.
Definition: parser.hpp:17
virtual bool parseKeyword(int keyword, const Compiler::TokenLoc &loc, Compiler::Scanner &scanner)
Definition: scripthighlighter.cpp:32
Scanner.
Definition: scanner.hpp:21
const char * name
Definition: crashcatcher.cpp:59