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

How should modulators which appear before the step they are modulating be indented? #55

Open
OyvindSabo opened this issue Aug 4, 2020 · 0 comments
Labels
question Further information is requested

Comments

@OyvindSabo
Copy link
Owner

For instance, assuming a max line length of 23 characters consider the following query:

g.V(1).emit().repeat(out()).times(2).path().by('name')

It is currently formatted like this (on the same line as the previous step, as if it was modulating the previous step):

g.V(1).emit().
  repeat(out()).
    times(2).
  path().by('name')

Should it rather be formatted like this (not treated as a modulator, I'm kind of leaning towards this one):

g.V(1).
  emit().
  repeat(out()).
    times(2).
  path().by('name')

Or like this (on the same line, but before the step it is modulating):

g.V(1).
  emit().repeat(out()).
    times(2).
  path().by('name')

Or like this (indented relative to the step it is modulating):

g.V(1).
    emit().
  repeat(out()).
    times(2).
  path().by('name')
@OyvindSabo OyvindSabo added the question Further information is requested label Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant