Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cleanup lexing of heredoc content
  • Loading branch information
adambeynon committed Dec 1, 2013
1 parent 94e75d7 commit 43dbac4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/opal/parser/lexer.rb
Expand Up @@ -340,8 +340,6 @@ def parse_string
end

def add_heredoc_content(str_buffer, str_parse)
scanner = @scanner

eos_regx = /[ \t]*#{Regexp.escape(str_parse[:end])}(\r*\n|$)/
expand = true

Expand All @@ -356,13 +354,7 @@ def add_heredoc_content(str_buffer, str_parse)
elsif expand && check(/#(?=[\$\@\{])/)
break
elsif scan(/\\/)
if str_parse[:type] == :regexp
if scan(/(.)/)
c = "\\" + scanner.matched
end
else
c = self.read_escape
end
c = self.read_escape
else
handled = false
end
Expand Down

0 comments on commit 43dbac4

Please sign in to comment.