There are 2 issues related to ES6 identifiers:
- In ES6, identifiers are less constrained than in ES5. For instance, you can define a class method named πκ where π is the Brahmi letter Ka \u{11013} and κ is the Vai syllable lengthener \u{a60c}.
Note that you can check that πκ is a valid ES6 identifier. Mathias Bynens from Google has created a script that generates the proper regex for ES6 (and ES5) identifiers.
However, the Sunlight javascript rules for syntax highlighting do not handle such identifiers properly and treat them as punctuation, e.g. d.πκ ( { days: 7 } ); will display with π and κ highlighted as sunlight-punctuation.
- It also seems that the processing of such characters discards some of them: they appear as οΏ½ in the resulting code. E.g. this is the case for Brahmi letter Ka π.
It is not a font issue, as Consolas is capable of displaying this letter.
Note that there are other UTF-8 characters that exhibit this second issue, this is only an example.
There are 2 issues related to ES6 identifiers:
Note that you can check that πκ is a valid ES6 identifier. Mathias Bynens from Google has created a script that generates the proper regex for ES6 (and ES5) identifiers.
However, the Sunlight javascript rules for syntax highlighting do not handle such identifiers properly and treat them as punctuation, e.g.
d.πκ ( { days: 7 } );will display with π and κ highlighted as sunlight-punctuation.It is not a font issue, as Consolas is capable of displaying this letter.
Note that there are other UTF-8 characters that exhibit this second issue, this is only an example.