diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2023-05-26 10:01:51 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2023-05-30 08:34:08 +0000 |
commit | 0c1974f9b89c0526e135d2a6d2e57edec992f21e (patch) | |
tree | bed6e98c65eb52a35a0c445f53c268c9daedd8a7 /src/plugins/texteditor/textdocumentlayout.h | |
parent | 2cce367906ca0fd57f902772ecf3342ce5f961c6 (diff) |
CppEditor: Fix highlighting angle brackets
The code assumed that all highlighting results come in at once, which is
no longer true as of d6f5d07639c3d0313b758ba6fb7cc5eb57d188ef.
Change-Id: I5ed6baf88956d64a30ee3fb236d4e2575a7f80c9
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/texteditor/textdocumentlayout.h')
-rw-r--r-- | src/plugins/texteditor/textdocumentlayout.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/texteditor/textdocumentlayout.h b/src/plugins/texteditor/textdocumentlayout.h index d6f847e481..33387093da 100644 --- a/src/plugins/texteditor/textdocumentlayout.h +++ b/src/plugins/texteditor/textdocumentlayout.h @@ -17,8 +17,9 @@ namespace TextEditor { -struct TEXTEDITOR_EXPORT Parenthesis +class TEXTEDITOR_EXPORT Parenthesis { +public: enum Type : char { Opened, Closed }; Parenthesis() = default; |