Update SyntaxHighlighter.cpp (#1206)

This commit is contained in:
Itay Cohen 2019-02-20 18:36:25 +00:00 committed by GitHub
parent 4a9b6182f5
commit d1af0c7c69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,8 +20,6 @@ SyntaxHighlighter::SyntaxHighlighter(QTextDocument *parent)
<< "\\bdefault\\b" << "\\bgoto\\b" << "\\bsizeof\\b"
<< "\\bvolatile\\b" << "\\bdo\\b" << "\\bif\\b"
<< "\\static\\b" << "\\while\\b";
//Special words
keywordPatterns << "\\bloc_*\\b" << "\\bsym.*\\b";
QTextCharFormat keywordFormat;
keywordFormat.setForeground(Qt::red);