mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00: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);
|
auto style = style_for_token_type(token.m_type);
|
||||||
span.color = style.color;
|
span.color = style.color;
|
||||||
span.font = style.font;
|
span.font = style.font;
|
||||||
|
span.is_skippable = token.m_type == CppToken::Type::Whitespace;
|
||||||
spans.append(span);
|
spans.append(span);
|
||||||
}
|
}
|
||||||
current_editor().document().set_spans(spans);
|
current_editor().document().set_spans(spans);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue