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
{{ message }}
Repository navigation
erb nested Inline control flow matching is broken #391
So in a normal Ruby file, if and end are paired into a syntax group, and the syntax group is leveraged for matchit pairing. Creating a syntax group isn't possible with HTML in the middle so that feature is disabled in ERB files. It would be probably possible to mitigate this by adding a look-behind to the \<if\> regexp. I am not likely to attempt this personally.
Activity
tpope commentedon Feb 6, 2019
It's working fine for me. What does
:echo b:ruby_no_expensivereport?amerov commentedon Feb 6, 2019
1
NoahTheDuke commentedon Feb 6, 2019
I experience this as well, and I also get a 1 when I run that command.
tpope commentedon Feb 6, 2019
With an unfamiliar color scheme I can't tell exactly what "this" is.
dkearns commentedon Feb 7, 2019
The
ifmodifier is being incorrectly match(it)ed withend.tpope commentedon Feb 7, 2019
Oh that I am experiencing and I am doubtful it can be fixed. Is the highlighting from a version of matchit newer than ships with Vim?
dkearns commentedon Feb 7, 2019
I assumed the highlighting was some sort of matchpairs plugin.
amerov commentedon Feb 7, 2019
I use vim-matchup
but I was try without this plugin and navigate with
%I got some result.tpope commentedon Feb 7, 2019
So in a normal Ruby file,
ifandendare paired into a syntax group, and the syntax group is leveraged for matchit pairing. Creating a syntax group isn't possible with HTML in the middle so that feature is disabled in ERB files. It would be probably possible to mitigate this by adding a look-behind to the\<if\>regexp. I am not likely to attempt this personally.dkearns commentedon Feb 8, 2019
@amerov If you're interested in trying to fix this yourself you might find some useful patterns in both the syntax and indent files.