Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New string interpolation breaks parser #35

Closed
stroan opened this issue Oct 24, 2012 · 1 comment
Closed

New string interpolation breaks parser #35

stroan opened this issue Oct 24, 2012 · 1 comment
Labels

Comments

@stroan
Copy link
Contributor

stroan commented Oct 24, 2012

Hitting the following error on master:

$ echo {} | ./jq '{foo: "s"}'

error: syntax error, unexpected QQSTRING_START
{foo: "s"}
      ^
1 compile error

Used git bisect to narrow it down to this commit: afec254

@stedolan
Copy link
Contributor

Silly mistake. The syntax for expressions is slightly different after a : in a dictionary, in particular comma means something different. Moving String out of Exp into Term makes it available in that context as well.

@dtolnay dtolnay added the bug label Jul 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants