[ruby/yarp] Fix comment locations

https://github.com/ruby/yarp/commit/7d2a1f8f1f
This commit is contained in:
Haldun Bayhantopcu 2023-07-25 21:14:51 +02:00 committed by git
parent 8ca399d640
commit 59e5bf2d1f

View File

@ -244,7 +244,7 @@ parser_comments(yp_parser_t *parser, VALUE source) {
VALUE location_argv[] = {
source,
LONG2FIX(comment->start - parser->start),
LONG2FIX(comment->end - parser->start)
LONG2FIX(comment->end - comment->start)
};
VALUE type;