tree-sitter / tree-sitter-ruby

Ruby grammar for tree-sitter
MIT License
182 stars 58 forks source link

Fix scanning of division vs regex before line ending #246

Closed aibaars closed 9 months ago

aibaars commented 9 months ago

This should improve parsing of expressions with a division (/) operator before a line break. Previously the scanner treated those as the start of a regular expression literal (/..../).

For example:

foo /
5

Checklist: