FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

erb nested Inline control flow matching is broken · Issue #391 · vim-ruby/vim-ruby · GitHub

Repository navigation

erb nested Inline control flow matching is broken #391

Description

Activity

  1. tpope commented on Feb 6, 2019

    Member

    It's working fine for me. What does :echo b:ruby_no_expensive report?

  2. amerov commented on Feb 6, 2019

    Author

    It's working fine for me. What does :echo b:ruby_no_expensive report?

    1

  3. NoahTheDuke commented on Feb 6, 2019

    I experience this as well, and I also get a 1 when I run that command.

  4. tpope commented on Feb 6, 2019

    Member

    With an unfamiliar color scheme I can't tell exactly what "this" is.

  5. dkearns commented on Feb 7, 2019

    Member

    The if modifier is being incorrectly match(it)ed with end.

  6. tpope commented on Feb 7, 2019

    Member

    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?

  7. dkearns commented on Feb 7, 2019

    Member

    I assumed the highlighting was some sort of matchpairs plugin.

  8. amerov commented on Feb 7, 2019

    Author

    I use vim-matchup
    but I was try without this plugin and navigate with % I got some result.

  9. tpope commented on Feb 7, 2019

    Member

    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.

  10. dkearns commented on Feb 8, 2019

    Member

    @amerov If you're interested in trying to fix this yourself you might find some useful patterns in both the syntax and indent files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL