Skip to content

Commit

Permalink
Consistently advance HCL delimiter index by two for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Oct 27, 2024
1 parent 7cbed5d commit e168652
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -741,15 +741,15 @@ private int positionOfNext(String untilDelim, @Nullable Character stop) {
} else switch (source.substring(delimIndex, delimIndex + 2)) {
case "//":
inSingleLineComment = true;
delimIndex++;
delimIndex += 2;
break;
case "/*":
inMultiLineComment = true;
delimIndex++;
delimIndex += 2;
break;
case "*/":
inMultiLineComment = false;
delimIndex = delimIndex + 2;
delimIndex += 2;
break;
}
}
Expand Down

0 comments on commit e168652

Please sign in to comment.