Skip to content

Commit eb3f281

Browse files
authored
compatibility with Ruby < 2
As requested by korny. Thanks.
1 parent eccb20a commit eb3f281

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/coderay/scanners/java.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Java < Scanner
4444
'"' => /[^\\"]+/,
4545
'/' => /[^\\\/]+/,
4646
} # :nodoc:
47-
IDENT = /[\p{L}_][\p{L}_0-9]*/ # :nodoc:
47+
IDENT = /[[[:alpha:]]_][[[:alnum:]]_]*/ # :nodoc:
4848

4949
protected
5050

0 commit comments

Comments
 (0)