trishume / syntect

Rust library for syntax highlighting using Sublime Text syntax definitions.
https://docs.rs/syntect
MIT License
1.85k stars 130 forks source link

CSS: wrong name: `storage.modifier.c++` #520

Open getreu opened 4 months ago

getreu commented 4 months ago

The generated CSS contains the following:

.storage.modifier.c++ {
 color: #859900;
}

which is rejected by Firefox with

Dangling combinator.  Ruleset ignored due to bad selector.

Is + allowed in identifiers?

keith-hall commented 4 months ago

See https://github.com/trishume/syntect/issues/308#issuecomment-685325155 for a prior discussion :)