Skip to content

Commit

Permalink
Match action arguments if any.
Browse files Browse the repository at this point in the history
  • Loading branch information
lemmy committed Jul 22, 2023
1 parent 339b9bc commit 5727474
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/parsers/tlc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,25 +566,25 @@ class ModelCheckResultBuilder {
}

private tryParseSimpleErrorTraceItem(lines: string[]): ErrorTraceItem | undefined {
const regex = /^(\d+): <([\w!]+) line (\d+), col (\d+) to line (\d+), col (\d+) of module (\w+)>$/g;
const regex = /^(\d+): <([\w!]+(\(.*\)){0,1}) line (\d+), col (\d+) to line (\d+), col (\d+) of module (\w+)>$/g;

Check warning on line 569 in src/parsers/tlc.ts

View workflow job for this annotation

GitHub Actions / build (macOS-latest)

This line has a length of 121. Maximum allowed is 120

Check warning on line 569 in src/parsers/tlc.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-20.04)

This line has a length of 121. Maximum allowed is 120

Check warning on line 569 in src/parsers/tlc.ts

View workflow job for this annotation

GitHub Actions / build (windows-latest)

This line has a length of 121. Maximum allowed is 120

Check warning on line 569 in src/parsers/tlc.ts

View workflow job for this annotation

GitHub Actions / build

This line has a length of 121. Maximum allowed is 120
const matches = this.tryMatchBufferLine(lines, regex);
if (!matches) {
return undefined;
}
const itemVars = this.parseErrorTraceVariables(lines);
const actionName = matches[2];
const moduleName = matches[7];
const moduleName = matches[8];
return new ErrorTraceItem(
parseInt(matches[1]),
`${actionName} in ${moduleName}`,
moduleName,
actionName,
this.getModulePath(moduleName),
new Range(
parseInt(matches[3]) - 1,
parseInt(matches[4]) - 1,
parseInt(matches[5]) - 1,
parseInt(matches[6])),
parseInt(matches[6]) - 1,
parseInt(matches[7])),
itemVars
);
}
Expand Down

0 comments on commit 5727474

Please sign in to comment.