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

Rust "attribute" macros (#[macro]) break the syntax #227

Open
RpxdYTX opened this issue Dec 15, 2023 · 0 comments
Open

Rust "attribute" macros (#[macro]) break the syntax #227

RpxdYTX opened this issue Dec 15, 2023 · 0 comments
Assignees
Labels
bug Something that needs to be fixed

Comments

@RpxdYTX
Copy link

RpxdYTX commented Dec 15, 2023

Please consider making a Pull Request if you are capable of doing so.

App Version:
2023.2.0

Affected Device(s):
Samsung Galaxy J5 with Android 10 (Lineage OS)

Describe the bug
Rust macros like #[derive] only go up to the next ']', so macros like logos::regex (e.g #[regex("[0-9]")]) are kind of broken (in the case o regex especifically, since the app thinks the macro is just #[regex("[0-9] the other quote becomes a never ending string)

To Reproduce
Steps to reproduce the behavior:

  1. Try to use a macro with another pair of square brackets inside

Expected behavior
The syntax highlighting should only stop considering the macro once the respective square bracket is met

@RpxdYTX RpxdYTX added the bug Something that needs to be fixed label Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that needs to be fixed
Projects
None yet
Development

No branches or pull requests

2 participants