Skip to content

Commit

Permalink
🐛 Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 committed Oct 19, 2023
1 parent c293b55 commit a573197
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/kbn-monaco/src/esql/lib/ast/ast_errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ function getExpectedSymbols(expectedTokens: RecognitionException['expectedTokens
const list = [];
for (const tokenId of tokenIds) {
if (esql_parser.VOCABULARY.getSymbolicName(tokenId)) {
list.push(esql_parser.VOCABULARY.getSymbolicName(tokenId));
} else if (tokenId === -1) {
list.push('<EOF>');
const symbol = esql_parser.VOCABULARY.getSymbolicName(tokenId);
list.push(symbol === 'EOF' ? `<${symbol}>` : symbol);
}
}
return list;
Expand Down

0 comments on commit a573197

Please sign in to comment.