From 7c5de5a3705769f91059dd56393e1b02dacf9a2f Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 14 Aug 2024 11:58:33 -0400 Subject: [PATCH] Fix TSS parsing multiple tags --- internal/styles/tss/parse.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/styles/tss/parse.go b/internal/styles/tss/parse.go index 3c097fd..c608d71 100644 --- a/internal/styles/tss/parse.go +++ b/internal/styles/tss/parse.go @@ -133,8 +133,8 @@ func (this *parser) parseSelector () (Selector, error) { // tags err = this.ExpectNext(LBracket) if err == nil { - this.Next() for { + this.Next() err := this.Expect(Ident, String, RBracket) if err != nil { return Selector { }, err } if this.Is(RBracket) { break } @@ -142,6 +142,7 @@ func (this *parser) parseSelector () (Selector, error) { selector.Tags = append(selector.Tags, this.Value()) err = this.ExpectNext(Comma, RBracket) if err != nil { return Selector { }, err } + if this.Is(RBracket) { break } } this.Next() }