You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Parse error on line 1:
...ar(--xxx, var(--yyy)) / 2
-----------------------^
Expecting 'EOF', 'ADD', 'SUB', 'MUL', 'DIV', got 'RPAREN'
I tried putting together a PR using recursive rules for the parser but realized someone else with a better understanding of Bison syntax could do a better job than me.
The best I could come up with is a regex which handles two levels of nesting which is enough for my use case but not really fool proof. I figured I should open an issue before submitting a PR with the following change to the parser:
The parser will fail if using nested custom properties with fallbacks which themselves are custom properties.
This code:
Will throw this error:
I tried putting together a PR using recursive rules for the parser but realized someone else with a better understanding of Bison syntax could do a better job than me.
The best I could come up with is a regex which handles two levels of nesting which is enough for my use case but not really fool proof. I figured I should open an issue before submitting a PR with the following change to the parser:
The text was updated successfully, but these errors were encountered: