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

Should lisp style formatting be used for tree-sitter-query files? #828

Open
mkatychev opened this issue Jan 11, 2025 · 0 comments
Open

Should lisp style formatting be used for tree-sitter-query files? #828

mkatychev opened this issue Jan 11, 2025 · 0 comments
Labels
question Further information is requested

Comments

@mkatychev
Copy link
Contributor

mkatychev commented Jan 11, 2025

  1. For the time being, I think we should stick with the Algol-style indentation, rather than Lisp-style. That is:

    ; Algol-style
    (foo
      (bar
        (quux)
      )
    )
    
    ; Lisp-style
    (foo
      (bar
        (quux)))

    I think there's a strong argument to switch to Lisp-style, but I think that warrants an issue -- feel free to create one -- so the Topiary Team can consider it.

Originally posted by @Xophmeister in #826 (review)

This issue is created to discuss using Lisp-style formatting for tree-sitter .scm files. I don't have a particularly strong stance but all community/official documentation outside of the topiary repo leans towards Lisp-style scopes.

@Xophmeister Xophmeister added the question Further information is requested label Jan 15, 2025
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

2 participants