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

Hide newlines from the emitted syntax tree #152

Closed
wants to merge 1 commit into from

Conversation

natrys
Copy link
Contributor

@natrys natrys commented Sep 20, 2024

No description provided.

@natrys
Copy link
Contributor Author

natrys commented Sep 20, 2024

Hi, if it's all the same, could we hide newlines from cluttering the syntax tree? I am not sure if they add functional value to other downstream software, but the Emacs julia-ts-mode in particular has problems doing indentations due to these anonymous nodes: JuliaEditorSupport/julia-ts-mode#17 (comment)

@savq
Copy link
Collaborator

savq commented Oct 2, 2024

Thanks for the PR.

I didn't know the newlines were a problem for Emacs, and AFAIK they're not needed elsewhere.

We don't need the hack that required all those newlines, so I refactored the rules for arrays, and I updated the definition of _terminator to match this PR in 14206db

@savq savq mentioned this pull request Oct 2, 2024
@natrys
Copy link
Contributor Author

natrys commented Oct 3, 2024

Thanks! Closing this then.

@natrys natrys closed this Oct 3, 2024
@natrys natrys deleted the hide-newline branch October 3, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants