Skip to content

Commit

Permalink
Change parse condition
Browse files Browse the repository at this point in the history
  • Loading branch information
zihaoAK47 committed Sep 26, 2023
1 parent 72c034c commit 9e8a5e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ public final ASTNode visitSimpleExpr(final SimpleExprContext ctx) {
if (null != ctx.LP_() && 1 == ctx.expr().size()) {
return visit(ctx.expr(0));
}
if (null != ctx.VERTICAL_BAR_(0) && null != ctx.VERTICAL_BAR_(1)) {
if (null != ctx.VERTICAL_BAR_() && 2 == ctx.VERTICAL_BAR_().size()) {
ExpressionSegment left = (ExpressionSegment) visit(ctx.simpleExpr(0));
ExpressionSegment right = (ExpressionSegment) visit(ctx.simpleExpr(1));
String text = ctx.start.getInputStream().getText(new Interval(ctx.start.getStartIndex(), ctx.stop.getStopIndex()));
Expand Down

0 comments on commit 9e8a5e1

Please sign in to comment.