Skip to content

Rust: current RNLS has a problem with lacking semicolons #54

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

Closed
thomasjm opened this issue Nov 28, 2023 · 2 comments
Closed

Rust: current RNLS has a problem with lacking semicolons #54

thomasjm opened this issue Nov 28, 2023 · 2 comments
Labels

Comments

@thomasjm
Copy link
Contributor

Unfortunately lines without semicolons are a normal part of evcxr. See the evcxr_jupyter_tour.ipynb notebook for examples.

Our current strategy of wrapping the rust in a big function isn't working; rust-analyzer doesn't like the missing semicolon and fails to parse after it.

Maybe ask in a rust-analyzer issue about it?

We might need to do fancier stuff in RNLS. Which will likely require a rust parser. The ones in Hackage don't look up to date:

https://hackage.haskell.org/package/tree-sitter-rust
https://hackage.haskell.org/package/language-rust

@thomasjm thomasjm added the rust label Nov 28, 2023
@thomasjm
Copy link
Contributor Author

@thomasjm
Copy link
Contributor Author

This seems to be good now with the addition of replace_end_delimiter_with

614bcfa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant