mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
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. :^)
This commit is contained in:
parent
d5afc58744
commit
15fb341eb4
3 changed files with 24 additions and 10 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue