Commit a82c5273 authored by Thomas BOUTROUE's avatar Thomas BOUTROUE Committed by David Schulz

Added support for 'dsIdentifier' to generic highlighter

Change-Id: I80d889c4db32d5ee69d3cfea0adadd96a44a7751
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
parent 390e90a0
......@@ -75,7 +75,8 @@ Highlighter::Highlighter(QTextDocument *parent) :
<< TextEditor::C_TEXT // TODO : add style for error (eg. red underline)
<< TextEditor::C_FUNCTION
<< TextEditor::C_TEXT
<< TextEditor::C_TEXT;
<< TextEditor::C_TEXT
<< TextEditor::C_LOCAL;
}
setTextFormatCategories(categories);
......@@ -113,6 +114,7 @@ KateFormatMap::KateFormatMap()
m_ids.insert(QLatin1String("dsFunction"), Highlighter::Function);
m_ids.insert(QLatin1String("dsRegionMarker"), Highlighter::RegionMarker);
m_ids.insert(QLatin1String("dsOthers"), Highlighter::Others);
m_ids.insert(QLatin1String("dsIdentifier"), Highlighter::Identifier);
}
Q_GLOBAL_STATIC(KateFormatMap, kateFormatMap)
......
......@@ -83,7 +83,8 @@ public:
Error,
Function,
RegionMarker,
Others
Others,
Identifier
};
void setTabSettings(const TabSettings &ts);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment