Skip to content

(low priority) Ruby syntax highlighting issue for regex literals with ! - or + operators #115

@aeschli

Description

@aeschli

From @jeff-hykin on December 24, 2017 4:45

  • VSCode Version: 1.19
  • OS Version: macOS 10.12.6
  • tested with extensions disabled

Steps to Reproduce:

audience = "world"
thing = ! /hello #{audience}/
puts thing 
#>>> true 

The syntax highlighting for /hello #{audience}/ is screwed up. The problem also exists if the - or + operators are used, however the ~ operator has the correct highlighting.

Solution:

This is a pretty small problem, so mentioning this in the ruby.tmLanguage.json is probably sufficient.

I'm somewhat familiar with language files so I might be able to add a fix and create a pull request in the next few weeks.

Copied from original issue: microsoft/vscode#40769

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions