Renamed CPPHighlighter to CppHighlighter

Lowercase is the more prevalent style in this plugin and CppTools.
Unfortunately CPPEditor can't be named CppEditor cause of the CppEditor
namespace.
This commit is contained in:
Thorbjørn Lindeijer
2008-12-16 13:19:11 +01:00
parent 1efe71992b
commit 442737d6e3
3 changed files with 9 additions and 9 deletions

View File

@@ -44,13 +44,13 @@ using namespace CppEditor::Internal;
using namespace TextEditor;
using namespace CPlusPlus;
CPPHighlighter::CPPHighlighter(QTextDocument *document) :
CppHighlighter::CppHighlighter(QTextDocument *document) :
QSyntaxHighlighter(document)
{
visualSpaceFormat.setForeground(Qt::lightGray);
}
void CPPHighlighter::highlightBlock(const QString &text)
void CppHighlighter::highlightBlock(const QString &text)
{
QTextCharFormat emptyFormat;
@@ -200,7 +200,7 @@ void CPPHighlighter::highlightBlock(const QString &text)
}
bool CPPHighlighter::isPPKeyword(const QStringRef &text) const
bool CppHighlighter::isPPKeyword(const QStringRef &text) const
{
switch (text.length())
{
@@ -255,7 +255,7 @@ bool CPPHighlighter::isPPKeyword(const QStringRef &text) const
return false;
}
bool CPPHighlighter::isQtKeyword(const QStringRef &text) const
bool CppHighlighter::isQtKeyword(const QStringRef &text) const
{
switch (text.length()) {
case 4:
@@ -290,7 +290,7 @@ bool CPPHighlighter::isQtKeyword(const QStringRef &text) const
return false;
}
void CPPHighlighter::highlightWord(QStringRef word, int position, int length)
void CppHighlighter::highlightWord(QStringRef word, int position, int length)
{
// try to highlight Qt 'identifiers' like QObject and Q_PROPERTY
// but don't highlight words like 'Query'