language-ruby icon indicating copy to clipboard operation
language-ruby copied to clipboard

self.public shouldn't be colored as keyword

Open TruePath opened this issue 4 years ago • 0 comments

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

TruePath avatar Aug 20 '21 03:08 TruePath