Skip to content
Browse files

Merge branch 'fix-ruby-unicode' into fix-ruby-new-hash-syntax

  • Loading branch information...
2 parents 7f664a6 + aa01f05 commit d87cdc14fed39d0d18fa289cddaaba67253bf4ca @korny korny committed Feb 17, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/coderay/scanners/ruby/patterns.rb
View
6 lib/coderay/scanners/ruby/patterns.rb
@@ -34,9 +34,9 @@ module Ruby::Patterns # :nodoc: all
add(%w[ undef ], :undef_expected).
add(%w[ alias ], :alias_expected).
add(%w[ class module ], :module_expected)
-
- IDENT = 'ä'[/[[:alpha:]]/] == 'ä' ? /[[:alpha:]_][[:alnum:]_]*/ : /[^\W\d]\w*/
-
+
+ IDENT = 'ä'[/[[:alpha:]]/] == 'ä' ? Regexp.new('[[:alpha:]_[^\0-\177]][[:alnum:]_[^\0-\177]]*') : /[^\W\d]\w*/
+
METHOD_NAME = / #{IDENT} [?!]? /ox
METHOD_NAME_OPERATOR = /
\*\*? # multiplication and power

0 comments on commit d87cdc1

Please sign in to comment.
Something went wrong with that request. Please try again.