forked from qt-creator/qt-creator
TextEditor: Implement highlighting of function definitions
This allows users to style function names at their definitions. Once set, the XML-style token "FunctionDefinition" will highlight all function definitions: the style option is a mixin to Function and Virtual Function. TEST=Default themes and locally hacked themes that lack Function, FunctionDefinition, Declaration-styling look as they did before this patch. Requires Clang. Task-number: QTCREATORBUG-16625 Change-Id: I49d8e401211bdf28ff74699feac16fe98f6d64ce Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -101,8 +101,9 @@ const char *nameForStyle(TextStyle style)
|
||||
case C_WARNING: return "Warning";
|
||||
case C_WARNING_CONTEXT: return "WarningContext";
|
||||
|
||||
case C_DECLARATION: return "Declaration";
|
||||
case C_OUTPUT_ARGUMENT: return "OutputArgument";
|
||||
case C_DECLARATION: return "Declaration";
|
||||
case C_FUNCTION_DEFINITION: return "FunctionDefinition";
|
||||
case C_OUTPUT_ARGUMENT: return "OutputArgument";
|
||||
|
||||
case C_LAST_STYLE_SENTINEL: return "LastStyleSentinel";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user