Skip to content

Commit

Permalink
DefaultParser: do not check brackets if inside quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Jan 30, 2019
1 parent a6dd868 commit 9a2e06d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ public ParsedLine parse(final String line, final int cursor, ParseContext contex
} else {
if (!isEscapeChar(line, i)) {
current.append(line.charAt(i));
bracketChecker.check(line, i);
if (quoteStart < 0) {
bracketChecker.check(line, i);
}
}
}
}
Expand Down

0 comments on commit 9a2e06d

Please sign in to comment.