12 #ifndef hifi_ScriptHighlighting_h
13 #define hifi_ScriptHighlighting_h
15 #include <QSyntaxHighlighter>
17 class ScriptHighlighting :
public QSyntaxHighlighter {
21 ScriptHighlighting(QTextDocument* parent = NULL);
25 BlockStateInMultiComment
29 void highlightBlock(
const QString& text)
override;
30 void highlightKeywords(
const QString& text);
31 void formatComments(
const QString& text);
32 void formatQuotedText(
const QString& text);
33 void formatNumbers(
const QString& text);
34 void formatTrueFalse(
const QString& text);
37 QRegExp _alphacharRegex;
38 QRegExp _keywordRegex;
39 QRegExp _quotedTextRegex;
40 QRegExp _multiLineCommentBegin;
41 QRegExp _multiLineCommentEnd;
43 QRegExp _singleLineComment;
44 QRegExp _truefalseRegex;