<!-- Have you read Atom's Code of Conduct? By filing an Issue, you are expected to comply with it, including treating everyone with respect: https://github.com/atom/.github/blob/master/CODE_OF_CONDUCT.md Do you want to ask a question? Are you looking for support? The Atom message board is the best place for getting support: https://discuss.atom.io --> ### Prerequisites * [ ] Put an X between the brackets on this line if you have done all of the following: * Reproduced the problem in Safe Mode: <https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode> * Followed all applicable steps in the debugging guide: <https://flight-manual.atom.io/hacking-atom/sections/debugging/> * Checked the FAQs on the message board for common solutions: <https://discuss.atom.io/c/faq> * Checked that your issue isn't already filed: <https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom> * Checked that there is not already an Atom package that provides the described functionality: <https://atom.io/packages> ### Description `:host-context()` and other experimental pseudo-classes are not tokenized correctly. ### Steps to Reproduce 1. Use the following snippet: ```scss :host-context(.template_025) .custom_07 h2 span { font-weight: bold; } ``` **Expected behavior:** **Actual behavior:** Actual on the left, expected on the right. `:host-context` only gets scoped as `source.css.scss` but I expect it to get a more specific scope. https://user-images.githubusercontent.com/7685505/122878212-0fccb480-d36a-11eb-957c-fd1486917026.png **Reproduces how often:** 100% ### Versions From commit f52ab12f7f9346cc2568129d8c4419bd3d506b47 Originally from @nickbanana in https://github.com/microsoft/vscode/issues/126886
Prerequisites
Description
:host-context()and other experimental pseudo-classes are not tokenized correctly.Steps to Reproduce
Expected behavior:
Actual behavior:
Actual on the left, expected on the right.
:host-contextonly gets scoped assource.css.scssbut I expect it to get a more specific scope.https://user-images.githubusercontent.com/7685505/122878212-0fccb480-d36a-11eb-957c-fd1486917026.png
Reproduces how often:
100%
Versions
From commit f52ab12
Originally from @nickbanana in microsoft/vscode#126886