ron.vim
ron.vim copied to clipboard
Nested Block Comments
Nested block comments break the highlighting:

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
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:
