johnyob / grace

A fancy diagnostics library that allows your compilers to exit with grace
MIT License
71 stars 2 forks source link

🚀 Feature: Support UTF-8 sources in `Grace_rendering` #7

Closed johnyob closed 5 months ago

johnyob commented 10 months ago

Context

Grace's core library is encoding agnostic for positions and ranges. However, Grace_rendering assumes ASCII encoding, computing all character widths from String.length (which simply returns number of bytes in the string).