You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once we find the end (with a look-ahead) we have to jump into a new mode (with starts) and two rules using multi-class on match/begin to highlight the individual pieces of tag as well as using endParent to prevent those same modes from gobbling up anymore then a SINGLE end tag.
And of course the look-ahead also prevents END_SAME_AS_BEGIN since we have no capture.
The solution you'd prefer / feature you'd like to see added...
I think I'd also be fine going ultra-explicit and all the places we're currently using scope: [] we'd simply change them to beginScope... so then scope/className would retain it's prior behavior... string or nothing, and wrap the entire block. And if you want to get specific, use *Scope.
Is your request related to a specific problem you're having?
Working on JSX I end up with the following mess:
Once we find the end (with a look-ahead) we have to jump into a new mode (with
starts
) and two rules using multi-class onmatch/begin
to highlight the individual pieces of tag as well as usingendParent
to prevent those same modes from gobbling up anymore then a SINGLE end tag.And of course the look-ahead also prevents END_SAME_AS_BEGIN since we have no capture.
The solution you'd prefer / feature you'd like to see added...
Not sure.
This is problematic though because eventually I'd like to use
begin
andend
to allow scoping the ENTIRE begin and end block individually, ie:Though I suppose a string vs an object is easy to differentiate at runtime.
A dedicated key is another option:
Any alternative solutions you considered...
TextMate grammars use
captures
,beginCaptures
,endCaptures
. Making a case for a separate key. A fuller example:With
scope
andmatch
being sugar forbeginScope
andbegin
.Additional context...
This is the next obvious improvement for multi-match.
The text was updated successfully, but these errors were encountered: