mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 01:30:13 +00:00
refactor(commands): FullString -> OpaqueRemainder and add OpaqueString
This commit is contained in:
parent
2a063442ea
commit
a1f7656276
6 changed files with 21 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue