diff options
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 = "" |