summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authort-gergely <kelevel+github@gmail.com>2017-07-07 10:45:30 +0200
committerGitHub <noreply@github.com>2017-07-07 10:45:30 +0200
commiteb3f281428d59760271c757287066d39430449ae (patch)
tree2814fa61fe2002dd4173206f94e2939eeeba2e53
parenteccb20a661eaed79cbd987a524579da92edcbf9c (diff)
downloadcoderay-eb3f281428d59760271c757287066d39430449ae.tar.gz
compatibility with Ruby < 2
As requested by korny. Thanks.
-rw-r--r--lib/coderay/scanners/java.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/java.rb b/lib/coderay/scanners/java.rb
index b40d4a6..5fde433 100644
--- a/lib/coderay/scanners/java.rb
+++ b/lib/coderay/scanners/java.rb
@@ -44,7 +44,7 @@ module Scanners
'"' => /[^\\"]+/,
'/' => /[^\\\/]+/,
} # :nodoc:
- IDENT = /[\p{L}_][\p{L}_0-9]*/ # :nodoc:
+ IDENT = /[[[:alpha:]]_][[[:alnum:]]_]*/ # :nodoc:
protected