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

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

@ghost

Description

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions