more orthogonal interface

This commit is contained in:
Aleksey Kladov 2021-12-12 18:38:49 +03:00
parent 6ce587ba5a
commit 965585748e
2 changed files with 12 additions and 8 deletions

View file

@ -68,7 +68,8 @@ pub(crate) fn to_parser_tokens(text: &str, lexer_tokens: &[lexer::Token]) -> ::p
SyntaxKind::from_contextual_keyword(token_text).unwrap_or(SyntaxKind::IDENT);
res.push_ident(contextual_kw);
} else {
res.push(was_joint, t.kind);
res.was_joint(was_joint);
res.push(t.kind);
was_joint = true;
}
off += usize::from(t.len);