Skip to content

rust.lang: fix attributes

eyelash requested to merge eyelash/gtksourceview:rust-attribute into master

The following is a correct Rust program which is currently highlighted wrongly (comments inside attributes are not handled correctly and therefore the ] inside the comment mistakenly closes the attribute). This pull request fixes the bug.

#[
  /* a comment that contains ] */
  derive(Clone)
]
struct Foo;

fn main() {}

Merge request reports