Skip to content

Commit eb039a8

Browse files
committed
fix(css-blocks): Improve BlockPath parser switch statement
1 parent 60c2f43 commit eb039a8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/css-blocks/src/BlockSyntax/BlockPath.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ export class BlockPath {
199199
break;
200200

201201
// If the opening quote of the value section of a state part, greedily consume everything between quotes.
202-
case char === SINGLE_QUOTE:
203-
case char === DOUBLE_QUOTE:
202+
case char === SINGLE_QUOTE || char === DOUBLE_QUOTE:
204203
if (!isState(token)) { return this.throw(ERRORS.illegalCharNotInState(char)); }
205204
working = walker.consume(char);
206205
if (walker.peek() !== char) { this.throw(ERRORS.mismatchedQuote); }

0 commit comments

Comments
 (0)