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 — Incorrect highlighting on conditional expression after line continuation · Issue #340 · vim-ruby/vim-ruby

Incorrect highlighting on conditional expression after line continuation #340

New issue
Copy link
New issue
Copy link
Open
Open
Incorrect highlighting on conditional expression after line continuation#340
Copy link
Assignees
dkearns
Labels
indentsyntax

Description

@matthewd
matthewd
opened on Apr 10, 2017
Issue body actions

In the following code, the else and end are highlighted as belonging to the def: the if appears to be treated as a modifier despite being in an expression context.

def foo
  x = \
    if a
      1
    else
      2
    end
end

Indentation seems to be correspondingly mislead, too.

Activity

  1. tpope commented on Apr 10, 2017

    @tpope
    tpope
    on Apr 10, 2017
    Member
    More actions

    Patch welcome, but my fix would be just to delete that worthless backslash.

    Reacted by dkearns
  2. dkearns
    added
    indent
    syntax
    on Dec 11, 2018
  3. dkearns
    self-assigned this
    on Feb 22, 2019
  4. dkearns
    added a commit that references this issue on Feb 25, 2019

    Fix conditional highlighting after redundant line continuations

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

Metadata

Metadata

Assignees

  • @dkearns
    dkearns

Labels

indentsyntax

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.