Closed entilldaniel closed 5 months ago
Oh, sorry. If github is using this grammar then I guess this has to be an issue with my editor.
@entilldaniel yeah, I think has to do with the extension responsible for highlighting brackets, no matter the language :)
I came across this fairly complex pattern in a sigil when reading the earmark source code: [
@link_text ~S{(?:\[[^]]*\]|[^][]|\])*}
](https://github.com/pragdave/earmark/blob/df44cab142dfc8325a5fdd1dbc387607920f69b1/lib/earmark_parser/context.ex#L95)This causes treesitter to parse some of the following brackets and parentheses as unmatched: