ron.vim icon indicating copy to clipboard operation
ron.vim copied to clipboard

Nested Block Comments

Open ModProg opened this issue 2 years ago • 1 comments

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: https://github.com/ron-rs/ron/issues/439

ModProg avatar Mar 12 '23 19:03 ModProg

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

ModProg avatar Mar 12 '23 21:03 ModProg