Skip to content

injections to not cover forward scoped regions #83

@msftrncs

Description

@msftrncs

It does not appear that injections are working if the scope selection was applied through a forward match.

Its an END rule that forward scopes, (])(?=(\.(?!\.)|::))|(?>[^\s\p{L},]) on [math]::hello it consumes the ](capture 1) and scopes the ::(capture 2). An injection rule to actually consume the :: in a begin rule that is then supposed to catch the hello (but optionally with whitespace or comments between, and then repeat with other accessors) is then applied to the scope of the ::.

A debug indicates that the injection is never scanned, so the scope is not being seen in getInjections. The debug does indicate the forward scoping is working (also confirmed with Inspect TM Scopes in VS Code).

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionality

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions