We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b71ff6a commit aa01f05Copy full SHA for aa01f05
lib/coderay/scanners/ruby/patterns.rb
@@ -34,9 +34,9 @@ module Ruby::Patterns # :nodoc: all
34
add(%w[ undef ], :undef_expected).
35
add(%w[ alias ], :alias_expected).
36
add(%w[ class module ], :module_expected)
37
-
38
- IDENT = 'ä'[/[[:alpha:]]/] == 'ä' ? /[[:alpha:]_][[:alnum:]_]*/ : /[^\W\d]\w*/
39
+
+ IDENT = 'ä'[/[[:alpha:]]/] == 'ä' ? Regexp.new('[[:alpha:]_[^\0-\177]][[:alnum:]_[^\0-\177]]*') : /[^\W\d]\w*/
40
METHOD_NAME = / #{IDENT} [?!]? /ox
41
METHOD_NAME_OPERATOR = /
42
\*\*? # multiplication and power
0 commit comments