diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-05 09:18:10 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-05 09:18:10 +0000 |
commit | cdc527db342eda4c58b62c5dc2a14441a395df5d (patch) | |
tree | 237c953b345a00333d1600706a7f2484b4ad408c /lib/rdoc/ruby_lex.rb | |
parent | 0a0eb2807ed745e1cdf7f4698fe805b4aaaee2c6 (diff) |
* lib/rdoc/*, test/rdoc/*: Update rdoc-5.0.0
Release note: https://github.com/rdoc/rdoc/blob/b825775647f62c5b525e9780a28ff2fbb1d5bf6f/History.rdoc#500--2016-11-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/ruby_lex.rb')
-rw-r--r-- | lib/rdoc/ruby_lex.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/rdoc/ruby_lex.rb b/lib/rdoc/ruby_lex.rb index 25788b6a29..1fc3c12c4a 100644 --- a/lib/rdoc/ruby_lex.rb +++ b/lib/rdoc/ruby_lex.rb @@ -853,11 +853,7 @@ class RDoc::RubyLex end end - IDENT_RE = if defined? Encoding then - eval '/[\w\u{0080}-\u{FFFFF}]/u' # 1.8 can't parse \u{} - else - /[\w\x80-\xFF]/ - end + IDENT_RE = eval '/[\w\u{0080}-\u{FFFFF}]/u' def identify_identifier token = "" |