mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-31 15:32:51 +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
Notes:
sideshowbarker
2024-07-19 11:09:07 +09:00
Author: https://github.com/awesomekling
Commit: 15fb341eb4
3 changed files with 24 additions and 10 deletions
|
@ -488,6 +488,7 @@ static void rehighlight()
|
|||
spans.append(span);
|
||||
}
|
||||
current_editor().document().set_spans(spans);
|
||||
static_cast<Editor&>(current_editor()).notify_did_rehighlight();
|
||||
current_editor().update();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue