jmespath / jmespath.py

JMESPath is a query language for JSON.
http://jmespath.org
MIT License
2.19k stars 181 forks source link

Syntax Highlight support for popular IDEs #283

Closed Minitour closed 2 years ago

Minitour commented 2 years ago

I am not sure if this is the right repo to open this issue, but I wanted to raise this because I couldn't find it anywhere.

It would be great to have support for IDEs such as VSCode / PyCharm / IntelliJ the ability to have .jp files that will have automatic syntax highlighting for JMESPath queries.

In addition it would also be great to have this work on multi-line string blocks, same as IntelliJ/PyCharm does for SQL queries.

I know there is an ABNF grammar definition, but I failed to find how this could be converted to parsers used by these IDEs mentioned above. This could be a great addition for finding syntax errors as well as deliver a much better developer experience when working with JMESPath.

Minitour commented 2 years ago

Closed as this can now be achieved with Pygments. Thanks to @mondeja.

Demo is available at https://pygments.org/demo/