atom / language-ruby

Ruby package for Atom
Other
100 stars 144 forks source link

Added scopes for many kernel and special methods in tree-sitter parser #285

Open gsmetal opened 4 years ago

gsmetal commented 4 years ago

Description of the Change

Added scopes for many kernel and special methods in tree-sitter parser. For example:

Alternate Designs

None.

Benefits

More accurate highlighting.

Possible Drawbacks

None.

Applicable Issues

252

Disclaimer

  1. I didn't understand how to "extend" grammars to make Gemfile's grammar separate and just extend ruby grammar with some specials. Is it possible?
  2. I haven't found any explicit information about available scopes and logic for mapping them to each language-specific situation. So I've done my best effort.
chbk commented 3 years ago

As a heads up, except for the gemfile specific methods, #291 provides scopes for everything in this PR.