wooorm / starry-night

Syntax highlighting, like GitHub
MIT License
1.45k stars 30 forks source link

add punctuation.accessor.optional to class map #31

Closed vanyauhalin closed 1 year ago

vanyauhalin commented 1 year ago

The class map has been tested using the JavaScript VSCode grammar, not the built-in Starry Night.

Code:

a?.b

Before:

<span class="pl-smi">a</span>?.<span class="pl-smi">b</span>

After:

<span class="pl-smi">a</span><span class="pl-kos">?.</span><span class="pl-smi">b</span>

GitHub:

<span class="pl-s1">a</span><span class="pl-kos">?.</span><span class="pl-c1">b</span>
wooorm commented 1 year ago

https://github.com/wooorm/starry-night/issues/24