mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
HackStudio: Mark whitespace tokens as skippable GTextDocumentSpans
This makes Ctrl+Left/Right jump over whitespace, which feels nice :^)
This commit is contained in:
parent
57f7009b9e
commit
834eff7983
1 changed files with 1 additions and 0 deletions
|
@ -483,6 +483,7 @@ static void rehighlight()
|
|||
auto style = style_for_token_type(token.m_type);
|
||||
span.color = style.color;
|
||||
span.font = style.font;
|
||||
span.is_skippable = token.m_type == CppToken::Type::Whitespace;
|
||||
spans.append(span);
|
||||
}
|
||||
current_editor().document().set_spans(spans);
|
||||
|
|
Loading…
Reference in a new issue