Skip to content

Commit

Permalink
fix: Fix HLASM Listing highlighting on lines with trimmed whitespace (#…
Browse files Browse the repository at this point in the history
…199)

fix: Fix HLASM Listing highlighting on lines with trimmed whitespace
fix: debugger::next race condition fix
Co-authored-by: slavek-kucera <53339291+slavek-kucera@users.noreply.github.com>
  • Loading branch information
michalbali256 and slavek-kucera authored Nov 3, 2021
1 parent ac5cb3d commit 4262e27
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions clients/vscode-hlasmplugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
- Infinite loop during lookahead processing when model statement is located in copybook
- DOT operator in string concatenation is optional
- AINSERT operand length validation
- HLASM Listing highligting of lines with trimmed whitespace
- Macro tracer: step over sometimes stops inside a macro or a copy file

## [0.14.0](https://github.com/eclipse/che-che4z-lsp-for-hlasm/compare/0.13.0...0.14.0) (2021-08-18)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
],
"repository": {
"listing_syntax":{
"match": "^(.{7})(.{9})(.{22})(\\d\\d|.\\d|.[+]|.{2})(.{71,72}).*$",
"match": "^(.{7})(.{9})(.{22})(\\d\\d|.\\d|.[+]|.{2})(.{1,72})",
"captures":
{

Expand All @@ -35,23 +35,23 @@
}
},
"listing_syntax_long":{
"match": "^(.{9})(.{9})(.{29})(\\d\\d|.\\d|.[+]|.{2})(.{71,72}).*$",
"match": "^(.{9})(.{9})(.{29})(\\d\\d|.\\d|.[+]|.{2})(.{1,72})",
"captures":
{
"2":{"patterns": [ {"include": "#param_syntax"}]},
"5":{"patterns" :[ {"include": "#hlasm_syntax"}]}
}
},
"listing_syntax_endevor":{
"match": "^(.{8})(.{9})(.{22})(\\d\\d|.\\d|.[+]|.{2})(.{71,72}).*$",
"match": "^(.{8})(.{9})(.{22})(\\d\\d|.\\d|.[+]|.{2})(.{1,72})",
"captures":
{
"2":{"patterns": [ {"include": "#param_syntax"}]},
"5":{"patterns" :[ {"include": "#hlasm_syntax"}]}
}
},
"listing_syntax_endevor_long":{
"match": "^(.{10})(.{9})(.{29})(\\d\\d|.\\d|.[+]|.{2})(.{71,72}).*$",
"match": "^(.{10})(.{9})(.{29})(\\d\\d|.\\d|.[+]|.{2})(.{1,72})",
"captures":
{
"2":{"patterns": [ {"include": "#param_syntax"}]},
Expand Down
2 changes: 1 addition & 1 deletion parser_library/src/debugging/debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ class debugger::impl final : public processing::statement_analyzer
stop_on_next_stmt_ = false;
step_over_ = false;
next_stmt_range_ = stmt_range;
step_over_depth_ = ctx_->processing_stack().size();

continue_ = false;
if (event_)
Expand All @@ -221,7 +222,6 @@ class debugger::impl final : public processing::statement_analyzer
{
std::lock_guard<std::mutex> lck(control_mtx);
step_over_ = true;
step_over_depth_ = ctx_->processing_stack().size();
continue_ = true;
}
con_var.notify_all();
Expand Down

0 comments on commit 4262e27

Please sign in to comment.