Commit cf0a6cb2 authored by Alain Laporte's avatar Alain Laporte Committed by Christoph Cullmann
Browse files

php_parser: fix class name not displayed in one case

Problematic case:

class class1
parent 2b4ee7a1
......@@ -190,6 +190,8 @@ void KatePluginSymbolViewerView::parsePhpSymbols(void)
nameWithTypes = matchClass.captured(3) + QLatin1String(" [") + matchClass.captured(1).trimmed() + QLatin1Char(']');
} else if (!matchClass.captured(4).trimmed().isEmpty()) {
nameWithTypes = matchClass.captured(3) + QLatin1String(" [") + matchClass.captured(4).trimmed() + QLatin1Char(']');
} else {
nameWithTypes = matchClass.captured(3);
}
node->setText(0, nameWithTypes);
} else {
......
Supports Markdown
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