Skip to content

Commit f865b51

Browse files
committed
Support %i() as an alias for %w()
1 parent 8434825 commit f865b51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/opal/lexer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def next_token
511511
scanner.scan(/\s*/)
512512
return :WORDS_BEG, scanner.matched
513513

514-
elsif scanner.scan(/\%w/)
514+
elsif scanner.scan(/\%w/) or scanner.scan(/\%i/)
515515
start_word = scanner.scan(/./)
516516
end_word = { '(' => ')', '[' => ']', '{' => '}' }[start_word] || start_word
517517
@string_parse = { :beg => 'w', :end => end_word }

0 commit comments

Comments
 (0)