func (cmd *Style) Parse() error {
	tok, lit := cmd.ScanIgnoreWhitespace()
	cmd.setTabCompleteNames(lit)
	if tok != lexer.TokenIdentifier {
		return fmt.Errorf("Unexpected '%v', expected identifier", lit)
	}
	cmd.styleKey = lit
	for {
		tok, lit := cmd.Scan()
		switch tok {
		case lexer.TokenWhitespace:
			cmd.setTabCompleteStyles("")
			continue
		case lexer.TokenIdentifier:
			break
		case lexer.TokenEnd:
			return nil
		default:
			return fmt.Errorf("Unexpected '%v', expected identifier", lit)
		}
		cmd.setTabCompleteStyles(lit)
		err := cmd.mergeStyle(lit)
		if err != nil {
			return err
		}
	}
}
Parse implements Command.
package commands
import (
	"fmt"
	"sort"
	"github.com/ambientsound/visp/api"
	"github.com/ambientsound/visp/input/lexer"
	"github.com/gdamore/tcell/v2"
)
type Style struct {
	command
	api api.API
	styleKey   string
	styleValue tcell.Style
	background bool
	foreground bool
}
func NewStyle(api api.API) Command {
	return &Style{
		api: api,
	}
}