Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

self.public shouldn't be colored as keyword #298

@TruePath

Description

@TruePath

Ruby syntax incorrectly colors (AND GITHUB!!) public in self.public even though it's valid (at least in interpreter and works in my code) to have a method named public.

  • Build 4113
  • Montery 12.0 Beta (21A5304g)

public is a perfectly valid method name in Ruby so self.public should be colored like any other method name but is instead colored as if public is a keyword. See the highlighting immediately below.

def foo
  self.public && self.public_changed?
end

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