refactor(commands): FullString -> OpaqueRemainder and add OpaqueString

This commit is contained in:
dusk 2025-01-15 00:35:22 +09:00
parent 2a063442ea
commit a1f7656276
No known key found for this signature in database
6 changed files with 21 additions and 14 deletions

View file

@ -282,7 +282,7 @@ fn next_token<'a>(
// iterate over tokens and run try_match
for token in possible_tokens {
let is_match_remaining_token = |token: &Token| matches!(token, Token::FullString(_));
let is_match_remaining_token = |token: &Token| matches!(token, Token::OpaqueRemainder(_));
// check if this is a token that matches the rest of the input
let match_remaining = is_match_remaining_token(token)
// check for Any here if it has a "match remainder" token in it