CppEditor: Fix highlighting angle brackets

The code assumed that all highlighting results come in at once, which is
no longer true as of d6f5d07639.

Change-Id: I5ed6baf88956d64a30ee3fb236d4e2575a7f80c9
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Christian Kandeler
2023-05-26 10:01:51 +02:00
parent 2cce367906
commit 0c1974f9b8
3 changed files with 20 additions and 5 deletions

View File

@@ -17,8 +17,9 @@
namespace TextEditor {
struct TEXTEDITOR_EXPORT Parenthesis
class TEXTEDITOR_EXPORT Parenthesis
{
public:
enum Type : char { Opened, Closed };
Parenthesis() = default;