Skip to content

Commit eccb20a

Browse files
authored
allow for non-ASCII identifiers
1 parent 368a28e commit eccb20a

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 = /[\p{L}_][\p{L}_0-9]*/ # :nodoc:
4848

4949
protected
5050

0 commit comments

Comments
 (0)