summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authort-gergely <kelevel+github@gmail.com>2017-07-04 17:01:52 +0200
committerGitHub <noreply@github.com>2017-07-04 17:01:52 +0200
commiteccb20a661eaed79cbd987a524579da92edcbf9c (patch)
tree92eefdf5d1002ea5da51454d240a9d853e7df990
parent368a28e26944edb5e6a59356d50683400695ab65 (diff)
downloadcoderay-eccb20a661eaed79cbd987a524579da92edcbf9c.tar.gz
allow for non-ASCII identifiers
-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..b40d4a6 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 = /[\p{L}_][\p{L}_0-9]*/ # :nodoc:
protected