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:
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.
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
andlanguage-ruby
: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