docs: document token

This commit is contained in:
2026-06-02 12:28:39 +02:00
parent dd6344aab6
commit 72dc7777fb
2 changed files with 145 additions and 51 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ token_handle<> lexer::next_token() {
{ "else", keyword_token::Else },
};
if (auto it = s_keywords.find(value); it != s_keywords.end()) return { location, it->second, value };
if (auto it = s_keywords.find(value); it != s_keywords.end()) return { location, it->second };
return { location, token_t::Identifier, value };
}