Skip to content

Commit

Permalink
Fix lexing of '.%\n' - make sure correct lexer state is set
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Sep 26, 2013
1 parent e560a41 commit 76dbba1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/opal/lexer.rb
Expand Up @@ -570,7 +570,9 @@ def next_token
return :STRING_BEG, scanner.matched
end
end
@lex_state = @lex_state == :expr_fname ? :expr_end : :expr_beg

@lex_state = after_operator? ? :expr_arg : :expr_beg

return '%', '%'

elsif scanner.scan(/\\/)
Expand Down

0 comments on commit 76dbba1

Please sign in to comment.