zdharma-continuum / fast-syntax-highlighting

Feature-rich syntax highlighting for ZSH
BSD 3-Clause "New" or "Revised" License
1.15k stars 75 forks source link

highlight: parse #fff/#ffffff correctly #18

Closed Aloxaf closed 2 years ago

Aloxaf commented 2 years ago

This PR make sure f-sy-h only highlight a valid hex color code.

Before: a

After: b

vladdoster commented 2 years ago

Thank you @Aloxaf for this bug fix. This issue has been a thorn in my side personally, so even more thanks for the PR.

Apologies it took a month and one day to get reviewed && merged :/.