Use jq syntax from atom jq support#4
Conversation
|
I noticed that there is something wrong with handling of |
4976046 to
711b58e
Compare
|
Think i've fixed it, added pattern "#variable" for object which allows |
|
Also issue with array literals inside object literals |
711b58e to
d41469f
Compare
|
Think i've fixed issue with arrays inside objects |
|
Hey wader, thank you for taking the time to improve this extension. I'd love to just accept this change as-is. I like that it adds support for string interpolation and the foreach keyword. I also appreciate the idea of consolidating the syntax with another project that is perhaps better maintained than this one. But I'd like to hear your thoughts about these issues: If we can't overcome the license barrier, maybe you or I can take a look at just adding the missing features to the current syntax. Thanks! |
|
Hi,
|
|
What do you think about the possibility to merge this repo and https://github.com/bencampion/language-jq somehow? not sure if it's easy to share a repo for a vscode and atom extension but would mean less work to sync syntax corrections between linguist, atom and vscode extensions. |
Difference to current syntax: Supports string interpolation highlighting Add foreach keyword def name and function highlighting the same Additional to atom syntax: Better array/pattern support Add //? operator Was convert using: cson2json < language-jq/grammars/jq.cson > jq.tmLanguage.json Related PR to update CSON grammar wader/language-jq#5
d41469f to
78d1c81
Compare
|
Hi, i've updated the syntax to use latest from https://github.com/wader/language-jq same grammar has now been merged into github linguist github-linguist/linguist#5233 |


Difference to current syntax:
Supports string interpolation highlighting
Add foreach keyword
def name and function highlighting the same
Additional to atom syntax:
Better array/pattern support
Add //? operator
Was convert using:
cson2json < language-jq/grammars/jq.cson > jq.tmLanguage.json
Related PR to update CSON grammar wader/language-jq#5