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

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

Open
TruePath opened this issue Aug 20, 2021 · 0 comments
Open

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

TruePath opened this issue Aug 20, 2021 · 0 comments

Comments

@TruePath
Copy link

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant