Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Textmate scope selector: support > combinator (child) #123

Open
ghost opened this issue Dec 21, 2021 · 0 comments
Open

Textmate scope selector: support > combinator (child) #123

ghost opened this issue Dec 21, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 21, 2021

Summary

Support the child operator/combinator for scopes in Textmate scope selectors.

path: '^'? «scope» ('>'? «scope»)* '$'?

https://macromates.com/textmate/manual/references#scope-selector

Motivation

The child combinator is used to restrict scope match in path to immediate children, much like > in CSS.

Describe alternatives you've considered

Being specific enough in the grammar and selector to target immediate children, but that assumes:
a. control over the grammar and
b. a scope selector that's amenable to this.

Additional context

Might be adopting these helpers for MSFT engineers in the VS Code ecosystem?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants