Closed ThomasFrans closed 1 year ago
if it's an editor highlighting bug then this is the wrong repo and should be filed w the editor specific repo (neovim would be nvim-treesitter)
if the parse tree is incorrect post the code and tree
No, it's a parser issue. Here I recreated a minimal example with the tree-sitter
cli tool.
fn main() {
[
#[cfg(linux)]
"a",
#[cfg(unix)]
"b",
];
}
thanks for the report, fixed now
When you have something like the following, it isn't parsed correctly. The first cfg macro is highlighted the way normal ones are highlighted, but all the next ones in the array are incorrect.