Skip to content

Commit

Permalink
Use jcodings rather than Java for alnum ident (will work with all enc…
Browse files Browse the repository at this point in the history
…odings without needing charset)
  • Loading branch information
enebo committed May 8, 2015
1 parent 89c7044 commit 0ec6cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/lexer/yacc/RubyLexer.java
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ private int getIntegerToken(String value, int radix, int suffix) {
* mri: is_identchar
*/
public boolean isIdentifierChar(int c) {
return !eofp && (Character.isLetterOrDigit(c) || c == '_' || isMultiByteChar(c));
return !eofp && (current_enc.isAlnum(c) || c == '_' || isMultiByteChar(c));
}

public boolean isASCII(int c) {
Expand Down

0 comments on commit 0ec6cdd

Please sign in to comment.