atom / language-ruby

Ruby package for Atom
Other
101 stars 144 forks source link

Fix Tree Sitter syntax highlighting issues for floats and some integer types #259

Closed daviwil closed 5 years ago

daviwil commented 5 years ago

Description of the Change

This change fixes syntax highlighting issues with floats and some integer types when using the Tree Sitter Ruby grammar. The highlighting issues are demonstrated in this screenshot from issue #251:

Here's a screenshot from the fixes to tree-sitter-ruby and language-ruby:

image

Alternate Designs

There is no alternate design, just fixing parsing regexes and scope mappings.

Benefits

Correct highlighting of floats and integers with upcased binary and decimal prefixes.

Possible Drawbacks

None.

Applicable Issues

Fixes #251. https://github.com/tree-sitter/tree-sitter-ruby/pull/101