mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17:35 +00:00
AK: Rename Vector::append(Vector) => Vector::extend(Vector)
Let's make it a bit more clear when we're appending the elements from one vector to the end of another vector.
This commit is contained in:
parent
7e1bffdeb8
commit
dc65f54c06
37 changed files with 103 additions and 104 deletions
|
@ -1560,8 +1560,7 @@ _StartOfFunction:
|
|||
log_parse_error();
|
||||
}
|
||||
|
||||
m_temporary_buffer.clear();
|
||||
m_temporary_buffer.append(match.value().code_points);
|
||||
m_temporary_buffer = match.value().code_points;
|
||||
|
||||
FLUSH_CODEPOINTS_CONSUMED_AS_A_CHARACTER_REFERENCE;
|
||||
SWITCH_TO_RETURN_STATE;
|
||||
|
|
|
@ -99,7 +99,7 @@ void SyntaxHighlighter::rehighlight(Palette const& palette)
|
|||
register_nested_token_pairs(proxy_client.corrected_token_pairs(highlighter.matching_token_pairs()));
|
||||
}
|
||||
|
||||
spans.append(proxy_client.corrected_spans());
|
||||
spans.extend(proxy_client.corrected_spans());
|
||||
substring_builder.clear();
|
||||
} else if (state == State::CSS) {
|
||||
// FIXME: Highlight CSS code here instead.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue