Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

def end method highlighting does not work #372

@ctrl-dlahr

Description

@ctrl-dlahr

Your environment

  • vscode-ruby version: 0.19.0
  • Ruby version: ruby-2.4.2
  • VS Code version: Version 1.25.1 (1.25.1)
  • Operating System: iMac (Retina 5K, 27-inch, Late 2014)
  • Hardware (optional):

Make sure you have ruby, ruby-debug-ide and ruby-debug-basex19 installed before submitting your issue -- thank you !

Expected behavior

def new
end

When I go to a .rb file I expect the words def & end to be highlighted when I place my cursor to the right of def or end.

Actual behavior

def & end do not highlight. If I write a new method (name does not matter) then def & end will highlight as normal in that file. When I go to a new file, I have to create a method before def and end properly highlight again

Steps to reproduce the problem

  1. open up a ruby file that has some basic methods ex:
    test.rb
def hello
end
  1. put your cursor to the right of def or end. (notice that it does not highlight)
  2. in that same file, write another method (doesn't matter what it is). Notice that now when you place your cursor to the right of def or end highlighting is now working.
    test.rb
def hello
end

def highlighting_working_now
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions