The formatter chokes on characters outside the Basic Multilingual Plane, that is, characters that don’t fit in one Java char. In this case, the length of the text (that is, CeylonString.length) doesn’t match the offsets that ANTLR calculates for Token.startIndex and Token.stopIndex.
For instance:
Float 𝜑 = 90.0;
(That’s U+1D711 MATHEMATICAL ITALIC SMALL PHI. On the other hand, U+03C6 GREEK SMALL LETTER PHI works.)
The formatter chokes on characters outside the Basic Multilingual Plane, that is, characters that don’t fit in one Java
char
. In this case, the length of thetext
(that is, CeylonString.length
) doesn’t match the offsets that ANTLR calculates forToken.startIndex
andToken.stopIndex
.For instance:
(That’s U+1D711 MATHEMATICAL ITALIC SMALL PHI. On the other hand, U+03C6 GREEK SMALL LETTER PHI works.)