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
A begin/end rule will create a \\G anchor immediately after the begin match ✅
however, if the begin rule matches the ending newline \n character
it causes it to place a \\G anchor at the beginning of every single line within the begin/end rule ❌
I'm not sure what happens in TextMate (no Mac here) are you able to confirm this is intentional and I am able to rely on this behaviour?
I can confirm that TextMate 2.0 does have this behaviour
and it seems it has a caching problem causing it to change depending on if the user just typed it
A
begin
/end
rule will create a\\G
anchor immediately after thebegin
match ✅however, if the
begin
rule matches the ending newline\n
characterit causes it to place a
\\G
anchor at the beginning of every single line within thebegin
/end
rule ❌create a grammar with the following code
create a file and apply the grammar
notice how both
a
andc
are highlighted red ❌even tho there should not be any
\\G
anchors thereremove the
\n
newline from the grammarnotice that there is now no incorrect
\\G
anchors ✅TextMate Help/TextMate.md states:
The text was updated successfully, but these errors were encountered: