Skip to content

Commit 90f68d6

Browse files
authored
Merge pull request rubychan#212 from t-gergely/java-nonascii
allow for non-ASCII identifiers
2 parents 860c2e1 + eb3f281 commit 90f68d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/coderay/scanners/java.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Java < Scanner
4444
'"' => /[^\\"]+/,
4545
'/' => /[^\\\/]+/,
4646
} # :nodoc:
47-
IDENT = /[a-zA-Z_][A-Za-z_0-9]*/ # :nodoc:
47+
IDENT = /[[[:alpha:]]_][[[:alnum:]]_]*/ # :nodoc:
4848

4949
protected
5050

0 commit comments

Comments
 (0)