Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow string literals in object property names #275

Merged
merged 8 commits into from
Aug 21, 2020

Conversation

anthony-c-martin
Copy link
Member

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

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

@alex-frankel
Copy link
Collaborator

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

@anthony-c-martin
Copy link
Member Author

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

Will do

@majastrz
Copy link
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)

{
var lineStarts = TextCoordinateConverter.GetLineStarts(sourceText);
var newlineSequence = dataSet.HasCrLfNewlines() ? "\r\n" : "\n";
Copy link
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
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
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