Skip to content

Commit

Permalink
Update a comment
Browse files Browse the repository at this point in the history
Signed-off-by: Simeon Widdis <[email protected]>
  • Loading branch information
Swiddis committed Jan 29, 2025
1 parent b12a37d commit a47be17
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* information.
*/
public class SyntaxAnalysisErrorListener extends BaseErrorListener {
// Show the up to this many characters before the offending token in the query.
// Show up to this many characters before the offending token in the query.
private static final int CONTEXT_TRUNCATION_THRESHOLD = 20;
// Avoid presenting too many alternatives when many are available.
private static final int SUGGESTION_TRUNCATION_THRESHOLD = 5;
Expand Down Expand Up @@ -57,7 +57,7 @@ private String truncateQueryAtOffendingToken(String query, Token offendingToken)

private String getDetails(Recognizer<?, ?> recognizer, String msg, RecognitionException e) {
if (e == null) {
// As official ANTLR says, e=null means parser was able to recover from the error.
// According to the ANTLR docs, e == null means the parser was able to recover from the error.
// In such cases, `msg` includes the raw error information we care about.
return msg;
}
Expand Down

0 comments on commit a47be17

Please sign in to comment.