Skip to content

Commit

Permalink
cqframework#437: newLine() called after processing comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Chicoine committed Apr 26, 2021
1 parent 8a3fd55 commit 7448c07
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ private void appendComment(CommentToken token) {
.append(whitespaceBefore);
}
output.append(token.token.getText()).append(whitespace);
newLine();
}

private void appendTerminal(String terminal) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ public void TestFormatterSpecific() throws IOException {
Assert.assertFalse(inError);
runTest("git-issue-613.cql");
Assert.assertFalse(inError);
runTest("git-issue-437.cql");
Assert.assertFalse(inError);
try {
runTest("invalid-syntax.cql");
} catch (AssertionError ae) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
define "Encounter With Principal Procedure of SCIP VTE Selected Surgery":
"Encounter With Age Range and Without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
with ( "SCIP VTE Selected Surgery" Procedure
where Procedure.rank = 1 //in "Principal"
) SelectedSCIPProcedure
such that SelectedSCIPProcedure.relevantPeriod during QualifyingEncounter.relevantPeriod

0 comments on commit 7448c07

Please sign in to comment.