rouge-ruby / rouge

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

Fix handling of Powershell subexpressions in interpolation #1900

Closed tancnle closed 1 year ago

tancnle commented 1 year ago

The closing bracket of the subexpression only pops out of the parameters state instead of the whole interpol state. This change ensures the closing bracket of the subexpression pops out of the interpol state.

Before After
Screenshot 2022-12-05 at 10 43 55 am Screenshot 2022-12-05 at 10 41 38 am
tancnle commented 1 year ago

👋🏼 @thecityofguanyu @retryW are any of you available to confirm if this change helps to address the reported issue? 🙏🏼