aboutsummaryrefslogtreecommitdiff
path: root/src/parser
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-04-13 03:52:07 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-04-13 03:52:07 +0800
commit59fcb7e4db666084be4f75ff4746db19b1eeeeb2 (patch)
tree7d78586222c6b460300b559fc7995e0c4d3a724b /src/parser
parent543ab7cf4e4af26962dbbe1c5cfe6a5fb8da214f (diff)
downloadrwebbrowser-59fcb7e4db666084be4f75ff4746db19b1eeeeb2.tar.gz
rwebbrowser-59fcb7e4db666084be4f75ff4746db19b1eeeeb2.tar.xz
feat: replace numeric link selection with two-character link hints
Diffstat (limited to 'src/parser')
-rw-r--r--src/parser/html_lexer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/html_lexer.cc b/src/parser/html_lexer.cc
index 2aa05b1..4d70288 100644
--- a/src/parser/html_lexer.cc
+++ b/src/parser/html_lexer.cc
@@ -36,7 +36,7 @@ enum class LexerState : std::uint8_t
void emit_text( std::string& buffer, std::vector<HtmlToken>& tokens )
{
if ( buffer.empty() ) {
- return; // 提前返回,减少 if 嵌套层级
+ return;
}
bool all_whitespace = true;