Skip to content

Commit

Permalink
compatibility with Ruby < 2
Browse files Browse the repository at this point in the history
As requested by korny. Thanks.
  • Loading branch information
t-gergely authored Jul 7, 2017
1 parent eccb20a commit eb3f281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/coderay/scanners/java.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Java < Scanner
'"' => /[^\\"]+/,
'/' => /[^\\\/]+/,
} # :nodoc:
IDENT = /[\p{L}_][\p{L}_0-9]*/ # :nodoc:
IDENT = /[[[:alpha:]]_][[[:alnum:]]_]*/ # :nodoc:

protected

Expand Down

0 comments on commit eb3f281

Please sign in to comment.