mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 13:28:16 +08:00

committed by
Patrik Svensson

parent
f561d71e4e
commit
5cf41725a5
@ -74,6 +74,9 @@ namespace Spectre.Console.Cli.Internal
|
||||
tokens.Add(ScanString(context, reader));
|
||||
}
|
||||
}
|
||||
|
||||
// Flush remaining tokens
|
||||
context.FlushRemaining();
|
||||
}
|
||||
|
||||
return position;
|
||||
@ -145,7 +148,6 @@ namespace Spectre.Console.Cli.Internal
|
||||
|
||||
// Add to the context
|
||||
context.AddRemaining(quotedString);
|
||||
context.FlushRemaining();
|
||||
|
||||
return new CommandTreeToken(
|
||||
CommandTreeToken.Kind.String,
|
||||
|
@ -21,14 +21,7 @@ namespace Spectre.Console.Cli.Internal
|
||||
{
|
||||
if (Mode == CommandTreeTokenizer.Mode.Remaining)
|
||||
{
|
||||
if (char.IsWhiteSpace(character))
|
||||
{
|
||||
FlushRemaining();
|
||||
}
|
||||
else
|
||||
{
|
||||
_builder.Append(character);
|
||||
}
|
||||
_builder.Append(character);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user