8000 Merge pull request #212 from t-gergely/java-nonascii · rubychan/coderay@90f68d6 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 90f68d6

Browse files
authored
Merge pull request #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)
0