rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments
https://rouge.jneen.net/
Other
3.32k stars 731 forks source link

Dart: Distinguish between punctuation and operators #1838

Closed gareththackeray closed 2 years ago

gareththackeray commented 2 years ago

All punctuation type characters were being treated as operators, except the first ( in a function signature, which led to different markup on opening versus closing parenthesis. By making all bracket type characters punctuation it will harmonise the formatting.

gareththackeray commented 2 years ago

Hi @tancnle would you mind reviewing this PR?

tancnle commented 2 years ago

@gareththackeray Thanks for the ping. I will look into this sometime today.

tancnle commented 2 years ago

Thank you for the prompt action on this @gareththackeray. Looks great to me 🚀