xo-tokenizer2: cosmetic / minor
This commit is contained in:
parent
83ef04c250
commit
42e2276e97
1 changed files with 4 additions and 1 deletions
|
|
@ -595,10 +595,13 @@ namespace xo {
|
|||
tk_text.clear();
|
||||
}
|
||||
|
||||
// TOOD: report tk_text as span,
|
||||
// but must pin / unpin
|
||||
|
||||
/* input.prefix(0):
|
||||
* require caller preserves current input line until it's entirely exhausted
|
||||
*/
|
||||
return result_type(token_type(tk_type, std::move(tk_text)),
|
||||
return result_type(Token(tk_type, std::move(tk_text)),
|
||||
p_input_state->current_line().prefix(0));
|
||||
} /*assemble_token*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue