Open jr-grenoble opened 6 years ago
@jr-grenoble What's your use case of sunlight highlighter? If you're highlighting code from Node.js, you should probably check https://github.com/lwchkg/sunlight-x for a version that will actually be maintained.
BTW, why not also to file a issue in https://github.com/lwchkg/sunlight-x/issues? I'd both languages and webpack in my todos, but if you file them I'd give these more priority.
@lwchkg In fact I'm an indirect user of sunlight: I use it through jsdoc templated by docstrap, indeed to document and highlight node code.
@jr-grenoble I see. I'll add an issue at docstrap to see if they're interested. Anyway, I don't see any reason to close the issue here though.
You are correct,, I'm reopening it here. Thanks !
There are 2 issues related to ES6 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.