summaryrefslogtreecommitdiff
path: root/include/ruby/internal
diff options
context:
space:
mode:
authorEarlopain <14981592+Earlopain@users.noreply.github.com>2025-01-12 15:11:00 +0100
committergit <svn-admin@ruby-lang.org>2025-01-12 18:34:06 +0000
commitd0deec3ef3a439374e77aad6fd90bc8f9c5bcc90 (patch)
tree1e1c15aaa1fa02434265ffd02cbc9b8cd0943965 /include/ruby/internal
parentf56f3eaae55cc6f8d9e79862ee73a9ffb53d6077 (diff)
[ruby/prism] Fix parser translator tokens for comment-only file
In https://github.com/ruby/prism/pull/3393 I made a mistake. When there is no previous token, it wraps around to -1. Oops Additionally, if a comment has no newline then the offset should be kept as is https://github.com/ruby/prism/commit/3c266f1de4
Diffstat (limited to 'include/ruby/internal')
0 files changed, 0 insertions, 0 deletions