1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/irb/ruby-lex.rb (identify_identifier): allow multibyte character

as identifier.  [ruby-core:27275]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2010-04-17 11:37:56 +00:00
parent 94365e5345
commit 0b28bf2958
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Sat Apr 17 20:31:08 2010 Yusuke Endoh <mame@tsg.ne.jp>
* lib/irb/ruby-lex.rb (identify_identifier): allow multibyte character
as identifier. [ruby-core:27275]
Sat Apr 17 09:19:27 2010 wanabe <s.wanabe@gmail.com>
* compile.c (iseq_compile_each): fix splat condition in NODE_WHEN.

View file

@ -727,7 +727,7 @@ class RubyLex
printf "MATCH: start %s: %s\n", op, io.inspect if RubyLex.debug?
if peek(0) =~ /[0-9]/
t = identify_number
elsif peek(0) =~ /\w/
elsif peek(0) =~ /[^\x00-\/:-@\[-`{-\x7F]/
t = identify_identifier
end
printf "MATCH: end %s: %s\n", op, io.inspect if RubyLex.debug?
@ -770,7 +770,7 @@ class RubyLex
end
end
while (ch = getc) =~ /\w|_/
while (ch = getc) =~ /[^\x00-\/:-@\[-`{-\x7F]/
print ":", ch, ":" if RubyLex.debug?
token.concat ch
end