Skip to content

Allow string literals in object property names#275

Merged
anthony-c-martin merged 8 commits into
masterfrom
antmarti/stringprops
Aug 21, 2020
Merged

Allow string literals in object property names#275
anthony-c-martin merged 8 commits into
masterfrom
antmarti/stringprops

Conversation

@anthony-c-martin
Copy link
Copy Markdown
Member

@anthony-c-martin anthony-c-martin commented Aug 20, 2020

Closes #249
Closes #145
Closes #156
Closes #206

Comment thread docs/spec/bicep.md
@alex-frankel
Copy link
Copy Markdown
Collaborator

We should also update the list of known issues in the readme which discusses this issue

@anthony-c-martin
Copy link
Copy Markdown
Member Author

We should also update the list of known issues in the readme which discusses this issue

Will do

Comment thread docs/spec/bicep.md
@majastrz
Copy link
Copy Markdown
Member

majastrz commented Aug 20, 2020

    private SyntaxBase ObjectProperty()

Grammar should be updated to match. #Resolved


Refers to: src/Bicep.Core/Parser/Parser.cs:518 in 5998fe7. [](commit_id = 5998fe7, deletion_comment = False)

Comment thread src/Bicep.Core/Syntax/ObjectPropertySyntax.cs Outdated
public static string AddDiagsToSourceText<T>(DataSet dataSet, IEnumerable<T> items, Func<T, TextSpan> getSpanFunc, Func<T, string> diagsFunc)
{
var lineStarts = TextCoordinateConverter.GetLineStarts(sourceText);
var newlineSequence = dataSet.HasCrLfNewlines() ? "\r\n" : "\n";
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was writing back these files using StringBuilder.AppendLine, which uses different newline terminators depending on the platform (hence the huge diffs...). This will make it consistent cross-platform and avoid the huge diffs occurring again (sorry!).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better now than later. Btw, CodeFlow shows "Edit" but no actual diff :)


In reply to: 474407770 [](ancestors = 474407770)

Copy link
Copy Markdown
Member

@majastrz majastrz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@anthony-c-martin anthony-c-martin merged commit 94544b6 into master Aug 21, 2020
@anthony-c-martin anthony-c-martin deleted the antmarti/stringprops branch August 21, 2020 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants