atom / language-ruby

Ruby package for Atom
Other
101 stars 144 forks source link

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

Open TruePath opened 3 years ago

TruePath commented 3 years ago

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.

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