mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
@@ -224,7 +224,7 @@ func (p *parser) parse(rule string) ([]string, error) {
|
|||||||
//
|
//
|
||||||
// LIST ::= <FACE> <COMMA> <LIST> | <FACE>
|
// LIST ::= <FACE> <COMMA> <LIST> | <FACE>
|
||||||
func (p *parser) parseList() error {
|
func (p *parser) parseList() error {
|
||||||
if len(p.tokens) < 0 {
|
if len(p.tokens) == 0 {
|
||||||
return fmt.Errorf("expected family name, got EOF")
|
return fmt.Errorf("expected family name, got EOF")
|
||||||
}
|
}
|
||||||
if head := p.tokens[0]; head.kind != tokenStr {
|
if head := p.tokens[0]; head.kind != tokenStr {
|
||||||
|
|||||||
Reference in New Issue
Block a user