fix(t6): assemble hash & endswitch (#122)

This commit is contained in:
Xenxo Espasandín
2023-05-15 13:07:09 +02:00
committed by xensik
parent 900fe95462
commit c1eb9b0c9b
7 changed files with 32 additions and 1051 deletions

View File

@ -1121,7 +1121,7 @@ auto map_token(context const* ctx_, token& tok) -> parser::symbol_type
return parser::symbol_type(parser::token::IDENTIFIER, std::move(tok.data), tok.pos);
}
else if (tok.type == token::PATH ||tok.type == token::STRING ||tok.type == token::ISTRING || tok.type == token::INT ||tok.type == token::FLT)
else if (tok.type == token::PATH ||tok.type == token::HASHSTR ||tok.type == token::STRING ||tok.type == token::ISTRING || tok.type == token::INT ||tok.type == token::FLT)
{
auto it = tok_to_parser.find(tok.type);