diff options
author | t-gergely <kelevel+github@gmail.com> | 2017-07-07 10:45:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-07 10:45:30 +0200 |
commit | eb3f281428d59760271c757287066d39430449ae (patch) | |
tree | 2814fa61fe2002dd4173206f94e2939eeeba2e53 /lib/coderay | |
parent | eccb20a661eaed79cbd987a524579da92edcbf9c (diff) | |
download | coderay-eb3f281428d59760271c757287066d39430449ae.tar.gz |
compatibility with Ruby < 2
As requested by korny. Thanks.
Diffstat (limited to 'lib/coderay')
-rw-r--r-- | lib/coderay/scanners/java.rb | 2 |
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 |