frozolotl / tree-sitter-typst

A tree-sitter grammar for the typst typesetting language with a focus on correctness
European Union Public License 1.2
76 stars 3 forks source link

Distinguish parentheses in math mode #15

Open frozolotl opened 10 months ago

frozolotl commented 10 months ago

Currently, all parentheses in math mode are highlighted as punctuation.

For improved readability, however, it seems reasonable to highlight parentheses used for grouping (i.e. x_(1+2)) differently from all others (i.e. (1+2)).