Skip to content

Some ruby keywords with optional do matched incorrectly #622

@xeron

Description

@xeron

Description

Some (or all?) ruby keywords with optional do matched incorrectly (e.g. while, until).

Support Info

  • ST ver.: 4152
  • Platform: osx
  • Arch: x64
  • Plugin ver.: 2.31.1
  • Install via PC: True
  • mdpopups ver.: 4.2.2
  • backrefs ver.: 5.0
  • markdown ver.: 3.2.2
  • pygments ver.: 2.1a0
  • jinja2 ver.: 2.10.1

Steps to Reproduce Issue

Example which doesn't work (with do):

10.times do
  while true do
    puts 1
  end
end

Example which works (without do):

10.times do
  while true
    puts 1
  end
end

Screenshot 2023-09-21 at 4 04 12 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    S: triageIssue needs triage.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions