GeezerVison is showing github.com — erb nested Inline control flow matching is broken · Issue #391 · vim-ruby/vim-ruby
erb nested Inline control flow matching is broken #391
Activity
tpope commented on Feb 6, 2019
It's working fine for me. What does :echo b:ruby_no_expensive report?
amerov commented on Feb 6, 2019
It's working fine for me. What does :echo b:ruby_no_expensive report?
1
NoahTheDuke commented on Feb 6, 2019
I experience this as well, and I also get a 1 when I run that command.
tpope commented on Feb 6, 2019
With an unfamiliar color scheme I can't tell exactly what "this" is.
dkearns commented on Feb 7, 2019
The if modifier is being incorrectly match(it)ed with end.
tpope commented on 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 commented on Feb 7, 2019
I assumed the highlighting was some sort of matchpairs plugin.
amerov commented on Feb 7, 2019
I use vim-matchup
but I was try without this plugin and navigate with % I got some result.
tpope commented on Feb 7, 2019
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.
dkearns commented on 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.
Metadata
Metadata
Development
No branches or pull requestsIssue actions