Skip to content

Commit

Permalink
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/ext/ripper/RipperLexer.java
Original file line number Diff line number Diff line change
@@ -336,7 +336,7 @@ public int tokenize_ident(int result) {
String value = createTokenString();

if (!isLexState(last_state, EXPR_DOT|EXPR_FNAME) && parser.getCurrentScope().isDefined(value) >= 0) {
setState(EXPR_END);
setState(EXPR_END|EXPR_LABEL);
}

identValue = value.intern();
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
@@ -1056,7 +1056,7 @@ private int yylex() throws IOException {
private int identifierToken(int result, String value) {
if (result == Tokens.tIDENTIFIER && !isLexState(last_state, EXPR_DOT|EXPR_FNAME) &&
parserSupport.getCurrentScope().isDefined(value) >= 0) {
setState(EXPR_END);
setState(EXPR_END|EXPR_LABEL);
}

yaccValue = value;
1 change: 0 additions & 1 deletion test/mri/excludes/TestSyntax.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
exclude :test__END___cr, "needs investigation"
exclude :test_alias_symbol, "needs investigation #4308"
exclude :test_cmdarg_kwarg_lvar_clashing_method, "needs investigation #4308"
exclude :test_constant_reassignment_nested, "needs investigation"
exclude :test_constant_reassignment_toplevel, "needs investigation"
exclude :test_dedented_heredoc_with_blank_more_indented_line, "needs investigation #4308"

0 comments on commit f755629

Please sign in to comment.