Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed some code that didn't actually do anything. (Confusion)

[git-p4: depot-paths = "//src/ruby_parser/dev/": change = 6743]
  • Loading branch information...
commit 33831c9c50f1cf7d231603dd1dd03d00309244a1 1 parent 6bab5ad
@zenspider zenspider authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 lib/ruby_lexer.rb
View
7 lib/ruby_lexer.rb
@@ -138,7 +138,6 @@ def heredoc here # 63 lines
end
until src.check(eos_re) do
- src.skip(eos_re)
c = tokadd_string func, "\n", nil
rb_compile_error err_msg if
@@ -200,12 +199,10 @@ def heredoc_identifier # 51 lines
return nil
end
- if src.check(/.*\n/) then
+ if src.scan(/.*\n/) then
# TODO: think about storing off the char range instead
- line = src.string[src.pos, src.matched_size]
- src.string[src.pos, src.matched_size] = "\n"
+ line = src.matched
src.extra_lines_added += 1
- src.pos += 1
else
line = nil
end
Please sign in to comment.
Something went wrong with that request. Please try again.