Skip to content

Commit

Permalink
Merge pull request #835 from EdwardCooke/ec-817-keynotappliedtoquoted…
Browse files Browse the repository at this point in the history
…scalars

Set IsKey on quoted scalar keys

+semver:fix
  • Loading branch information
EdwardCooke authored Aug 22, 2023
2 parents 8a7cb19 + 4cb53a2 commit cfa312c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions YamlDotNet/Core/Scanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1785,9 +1785,10 @@ private void FetchQuotedScalar(bool isSingleQuoted)
flowScalarFetched = flowLevel > 0;

// Create the SCALAR token and append it to the queue.
var scalar = ScanFlowScalar(isSingleQuoted);

tokens.Enqueue(ScanFlowScalar(isSingleQuoted));

tokens.Enqueue(scalar);
lastScalar = scalar;
// Check if there is a comment subsequently after double-quoted scalar without space.

if (!isSingleQuoted && analyzer.Check('#'))
Expand All @@ -1801,7 +1802,7 @@ private void FetchQuotedScalar(bool isSingleQuoted)
/// Scan a quoted scalar.
/// </summary>

private Token ScanFlowScalar(bool isSingleQuoted)
private Scalar ScanFlowScalar(bool isSingleQuoted)
{
// Eat the left quote.

Expand Down

0 comments on commit cfa312c

Please sign in to comment.