GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

New issue
Copy link
New issue
Copy link
Open
Open
erb nested Inline control flow matching is broken#391
Copy link
Labels
ftplugin

Description

@amerov
amerov
opened on Feb 6, 2019
Issue body actions

screenshot from 2019-02-06 21-53-27

Activity

  1. tpope commented on Feb 6, 2019

    @tpope
    tpope
    on Feb 6, 2019
    Member
    More actions

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

  2. amerov commented on Feb 6, 2019

    @amerov
    amerov
    on Feb 6, 2019
    Author
    More actions

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

    1

  3. NoahTheDuke commented on Feb 6, 2019

    @NoahTheDuke
    NoahTheDuke
    on Feb 6, 2019
    More actions

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

  4. tpope commented on Feb 6, 2019

    @tpope
    tpope
    on Feb 6, 2019
    Member
    More actions

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

  5. dkearns
    added
    ftplugin
    on Feb 7, 2019
  6. dkearns commented on Feb 7, 2019

    @dkearns
    dkearns
    on Feb 7, 2019
    Member
    More actions

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

  7. tpope commented on Feb 7, 2019

    @tpope
    tpope
    on Feb 7, 2019
    Member
    More actions

    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?

  8. dkearns commented on Feb 7, 2019

    @dkearns
    dkearns
    on Feb 7, 2019
    Member
    More actions

    I assumed the highlighting was some sort of matchpairs plugin.

  9. amerov commented on Feb 7, 2019

    @amerov
    amerov
    on Feb 7, 2019
    Author
    More actions

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

  10. tpope commented on Feb 7, 2019

    @tpope
    tpope
    on Feb 7, 2019
    Member
    More actions

    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.

  11. dkearns commented on Feb 8, 2019

    @dkearns
    dkearns
    on Feb 8, 2019
    Member
    More actions

    @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

    ftplugin

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.