Skip to content

Commit

Permalink
Support %i() as an alias for %w()
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Sep 26, 2013
1 parent 8434825 commit f865b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/opal/lexer.rb
Expand Up @@ -511,7 +511,7 @@ def next_token
scanner.scan(/\s*/)
return :WORDS_BEG, scanner.matched

elsif scanner.scan(/\%w/)
elsif scanner.scan(/\%w/) or scanner.scan(/\%i/)
start_word = scanner.scan(/./)
end_word = { '(' => ')', '[' => ']', '{' => '}' }[start_word] || start_word
@string_parse = { :beg => 'w', :end => end_word }
Expand Down

0 comments on commit f865b51

Please sign in to comment.