diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-02-23 17:08:46 +1100 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-02-24 21:22:26 -0800 |
| commit | 8812e8ad4957e3e201dabb62c6c3a8e0b10333a7 (patch) | |
| tree | 0bb6c15a008c4de9e87f946cc75ceb34cbf80a55 /src/libsyntax/parse | |
| parent | ff79a4471cbf5fa4e78fcf56be129a3d56690127 (diff) | |
| download | rust-8812e8ad4957e3e201dabb62c6c3a8e0b10333a7.tar.gz rust-8812e8ad4957e3e201dabb62c6c3a8e0b10333a7.zip | |
syntax: calculate positions of multibyte characters more correctly.
They are still are not completely correct, since it does not handle graphemes at all, just codepoints, but at least it handles the common case correctly. The calculation was previously very wrong (rather than just a little bit wrong): it wasn't accounting for the fact that every character is 1 byte, and so multibyte characters were pretending to be zero width. cc #8706
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions
