ashmind / SharpLab

.NET language playground
https://sharplab.io
BSD 2-Clause "Simplified" License
2.73k stars 201 forks source link

Syntax highlighting for `pinned` keyword #709

Open jnm2 opened 3 years ago

jnm2 commented 3 years ago

This looks sort of misleadingly like a local name rather than a keyword (link):

image

I suppose this would mean highlighting modreq and & too, since these are all part of the same table:

image

(https://www.ecma-international.org/wp-content/uploads/ECMA-335_5th_edition_december_2010.pdf page 147)

ashmind commented 3 years ago

Thanks for reporting! I was going to say this will take a while (until CodeMirror 6 migration is done), but IL highlighting is somewhere in my code and not in CodeMirror. So I can actually do it earlier.

It will still take a while though (OSS time) -- but less. Happy to accept a PR in the meantime.