summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2017-09-03 10:46:00 +0200
committerGitHub <noreply@github.com>2017-09-03 10:46:00 +0200
commit90f68d65c09851fa8bf2c37bc5982d3e25b80de1 (patch)
tree7d6e227ca9be49a7be1750b60c34e03337056a53 /lib
parent860c2e132d2eed2b10285276fb6d1ca509f56cdc (diff)
parenteb3f281428d59760271c757287066d39430449ae (diff)
downloadcoderay-90f68d65c09851fa8bf2c37bc5982d3e25b80de1.tar.gz
Merge pull request #212 from t-gergely/java-nonascii
allow for non-ASCII identifiers
Diffstat (limited to 'lib')
-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 962154e..5fde433 100644
--- a/lib/coderay/scanners/java.rb
+++ b/lib/coderay/scanners/java.rb
@@ -44,7 +44,7 @@ module Scanners
'"' => /[^\\"]+/,
'/' => /[^\\\/]+/,
} # :nodoc:
- IDENT = /[a-zA-Z_][A-Za-z_0-9]*/ # :nodoc:
+ IDENT = /[[[:alpha:]]_][[[:alnum:]]_]*/ # :nodoc:
protected