OyvindSabo / gremlint

Linter/Code formatter for Gremlin
https://gremlint.com
Apache License 2.0
11 stars 6 forks source link

g.V("anything") and g.E("anything") do not work #39

Closed clayu closed 3 years ago

clayu commented 4 years ago

The formatter does not add spaces when the g.V or g.E contain arguments. There appears to be logic which is searching for exact matches to 'g.V()' and 'g.E()'

OyvindSabo commented 3 years ago

Hi, thanks for testing out Gremlint:grinning: I released a major rewrite yesterday. The previous version was mostly created as a prototype, with just one huge function with a bit of hard coding and a lot of parenthesis counters:see_no_evil:. The new version parses the query to a syntax tree, adds formatting information and then reprints it from scratch. Some minor things like comment support, syntax highlighting and being able to format multiple code blocks still remains to be implemented, but the issue you're pointing out should be fixed now.

Please give it a try and let me know what you think!