Skip to content

Commit

Permalink
Fix for issue 9855 (#9859)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-c-martin authored Feb 17, 2023
1 parent b4383a0 commit f4a4d48
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions src/Bicep.Core.IntegrationTests/ScenarioTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4245,6 +4245,19 @@ param appsettings object
result.Should().NotHaveAnyDiagnostics();
}

// https://github.com/Azure/bicep/issues/9855
[TestMethod]
public void Test_Issue9855()
{
var result = CompilationHelper.Compile(@"
/*************
* BLOCK *
**************/
");

result.Should().NotHaveAnyDiagnostics();
}

// https://github.com/Azure/bicep/issues/9469
[TestMethod]
public void Test_Issue9469()
Expand Down
2 changes: 1 addition & 1 deletion src/Bicep.Core/Parsing/Lexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ private SyntaxTrivia ScanMultiLineComment()
var nextChar = textWindow.Peek();
textWindow.Advance();

if (nextChar != '*')
if (nextChar != '*' || textWindow.Peek() != '/')
{
continue;
}
Expand Down

0 comments on commit f4a4d48

Please sign in to comment.