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

Nested Block Comments #10

Open
ModProg opened this issue Mar 12, 2023 · 1 comment
Open

Nested Block Comments #10

ModProg opened this issue Mar 12, 2023 · 1 comment

Comments

@ModProg
Copy link

ModProg commented Mar 12, 2023

Nested block comments break the highlighting:
grafik

I ran

    let _: ron::Value = ron::from_str(r#"
        Something(
            /* /* test */ */
            a: b
        )
        "#).unwrap();

To verify, ron supports nested block comments, and also opened an issue to add them to the grammar specification: ron-rs/ron#439

@ModProg
Copy link
Author

ModProg commented Mar 12, 2023

Out of curiosity, I create some more unlikely syntax:

# // a comment
    ! [  enable
( unwrap_newtypes
 , implicit_some)
]
// Line Comment
/* block */
/* Block Comment /* Nested Block Comment */ */
(
    value 

    : "hello" // comment
    ,
    something_else /* */: "hi"
)

While I don't expect any sensible person to write this, it makes the syntax highlight very much nothing anymore:

grafik

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

No branches or pull requests

1 participant