Skip to content

Commit

Permalink
fix: Produce more specific diagnostic on grammar predicate failure
Browse files Browse the repository at this point in the history
  • Loading branch information
slavek-kucera authored Mar 27, 2024
1 parent 67cfec3 commit 28ed301
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions clients/vscode-hlasmplugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#### Fixed
- Unknown requests were dropped without a proper response
- Hover text for complex relocation symbols contains incorrect multiplicative factors
- Produce more specific diagnostic on grammar predicate failure

## [1.12.0](https://github.com/eclipse-che4z/che-che4z-lsp-for-hlasm/compare/1.11.1...1.12.0) (2024-03-05)

Expand Down
2 changes: 1 addition & 1 deletion parser_library/src/parsing/parser_error_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ void parser_error_listener_base::syntaxError(
else
add_parser_diagnostic(diagnostic_op::error_S0002, range(position(line, char_pos_in_line)));
}
catch (antlr4::InputMismatchException& excp)
catch (antlr4::RecognitionException& excp)
{
auto offender = excp.getOffendingToken();
auto expected = excp.getExpectedTokens();
Expand Down

0 comments on commit 28ed301

Please sign in to comment.