Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/opal/parser/lexer.rb
Original file line number Diff line number Diff line change
@@ -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

@@ -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

0 comments on commit 43dbac4

Please sign in to comment.