Permalink
Browse files

- RPStringScanner#lineno was still using byte offset, not char offset…

…. (brynary)

[git-p4: depot-paths = "//src/ruby_parser/dev/": change = 8015]
  • Loading branch information...
1 parent 6973515 commit 9fbeba38a7201b712b4c1749b330edb855bc7e13 @zenspider zenspider committed Nov 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ruby_parser_extras.rb
@@ -70,7 +70,7 @@ def extra_lines_added= val
end
def lineno
- string[0...pos].count("\n") + 1 - extra_lines_added
+ string[0...charpos].count("\n") + 1 - extra_lines_added
end
# TODO: once we get rid of these, we can make things like

0 comments on commit 9fbeba3

Please sign in to comment.