Rather than fixing this particular edge case, the fix should be universal and identify which parts of the top-level code can be interpreted as a Gremlin query and leave the surrounding code as it is. This will hopefully also fix https://github.com/OyvindSabo/gremlint/issues/64.
Consider the following query formatted with a max line length of 72:
Without the semicolon it will (as expected) be formatted like this:
but with the semicolon it is currently formatted like this:
while it should be formatted like this:
Rather than fixing this particular edge case, the fix should be universal and identify which parts of the top-level code can be interpreted as a Gremlin query and leave the surrounding code as it is. This will hopefully also fix https://github.com/OyvindSabo/gremlint/issues/64.