We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44a4f08 commit 1632c66Copy full SHA for 1632c66
lib/coderay/scanners/java.rb
@@ -44,7 +44,7 @@ class Java < Scanner
44
'"' => /[^\\"]+/,
45
'/' => /[^\\\/]+/,
46
} # :nodoc:
47
- IDENT = RUBY_VERSION < '1.9' ? /[a-zA-Z_][A-Za-z_0-9]*/ : /[[[:alpha:]]_][[[:alnum:]]_]*/ # :nodoc:
+ IDENT = RUBY_VERSION < '1.9' ? /[a-zA-Z_][A-Za-z_0-9]*/ : Regexp.new('[[[:alpha:]]_][[[:alnum:]]_]*') # :nodoc:
48
49
protected
50
0 commit comments