Skip to content

Commit

Permalink
fix: Syntax error diagnostics issued due to inconsistent lexer initia…
Browse files Browse the repository at this point in the history
…lization
  • Loading branch information
slavek-kucera authored Nov 21, 2024
1 parent 820bf68 commit eabeb1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions clients/vscode-hlasmplugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- The language server crashes while processing an invalid prototype of a nested macro
- Incorrect parsing of attributes in macro operands
- Diagnostic issued for a valid flag parameter on the `*PROCESS` statement
- Syntax error diagnostics issued due to inconsistent lexer initialization

## [1.15.0](https://github.com/eclipse-che4z/che-che4z-lsp-for-hlasm/compare/1.14.0...1.15.0) (2024-09-20)

Expand Down
2 changes: 2 additions & 0 deletions parser_library/src/lexing/lexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ void lexer::reset(position file_offset, size_t logical_column, bool process_allo
retired_tokens.clear();
last_token_id_ = 0;

creating_var_symbol_ = false;
creating_attr_ref_ = false;
process_allowed_ = process_allowed;

input_.push_back(EOF_SYMBOL);
Expand Down

0 comments on commit eabeb1c

Please sign in to comment.