Closed Havvy closed 10 years ago
Are you using an old version? The error you are getting (expected case
) doesn't exist anymore in the source code. In older versions (0.1.x), cases needed to be prefixed with an actual case
keyword, which is what the error is indicating. There is a test that handles string literals here https://github.com/natefaubion/sparkler/blob/a8450ed378e41d41d26e3731fdb293cb56f7ac7d/test/patterns.sjs#L28
Yes. Old version it is. Should have checked that first. Sorry.
I'm trying to dispatch based on a string value, but I get a parse error at the opening quote.
Here's my code:
Here's my shell command:
Here's the output of the shell command:
Am I reading the documentation incorrectly, or does Sparkler not support literal strings in patterns?