diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-11-18 19:21:18 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-18 19:21:18 +0100 |
commit | 15fb341eb4fb8d5fb83936a5ba4b6a565afa22cb (patch) | |
tree | 9ce296ce053640f617271a5d3c4069bbd54f141d /DevTools/HackStudio/Editor.h | |
parent | d5afc58744d3bdcdb0783f1a838db3ccfea8ca16 (diff) | |
download | serenity-15fb341eb4fb8d5fb83936a5ba4b6a565afa22cb.zip |
HackStudio: Always re-match curlies/parens after a re-highlight
While you are typing in HackStudio, we re-lex the C++ as you type,
so this means we also need to keep re-checking for matching curlies and
parentheses at the cursor.
Fixes #769 (although it's not optional, because it's too cool. :^)
Diffstat (limited to 'DevTools/HackStudio/Editor.h')
-rw-r--r-- | DevTools/HackStudio/Editor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/DevTools/HackStudio/Editor.h b/DevTools/HackStudio/Editor.h index 0b67cc788a..52786574cc 100644 --- a/DevTools/HackStudio/Editor.h +++ b/DevTools/HackStudio/Editor.h @@ -15,6 +15,8 @@ public: EditorWrapper& wrapper(); const EditorWrapper& wrapper() const; + void notify_did_rehighlight(); + private: virtual void focusin_event(CEvent&) override; virtual void focusout_event(CEvent&) override; @@ -23,6 +25,7 @@ private: virtual void cursor_did_change() override; void show_documentation_tooltip_if_available(const String&, const Point& screen_location); + void highlight_matching_curlies_or_parens(); explicit Editor(GWidget* parent); |