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

fix YAML syntax highlighting #5750

Merged
merged 1 commit into from
Oct 3, 2015
Merged

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Oct 2, 2015

Q A
Doc fix? yes
New docs? no
Applies to all
Fixed tickets #5684

In YAML, double quoted strings can contain escape sequences. Thus, we would have to escape the backslash if we wanted to use them instead of single quotes (see the Platform.sh build to spot the difference now).

@xabbuh xabbuh changed the title [WIP] fix YAML syntax highlighting fix YAML syntax highlighting Oct 2, 2015
@stof
Copy link
Member

stof commented Oct 2, 2015

👍

@wouterj
Copy link
Member

wouterj commented Oct 2, 2015

I don't see any differences between symfony.com and the platform.sh build, but 👍 anyway it makes sense.

@javiereguiluz
Copy link
Member

I don't understand this change. I think we always use the double quotes for YAML strings.

@xabbuh
Copy link
Member Author

xabbuh commented Oct 2, 2015

@wouterj @javiereguiluz You have to look at the 2.3 branch on symfony.com. I did not merge branches up as I wanted to fix this first.

@wouterj
Copy link
Member

wouterj commented Oct 2, 2015

@javiereguiluz double quotes means escape sequences in Yaml. So \. is seen as an escape sequence instead of \. as a string. Single quotes don't use escape sequences in Yaml, so \. is seen as the string \., exactly what we want.

@javiereguiluz
Copy link
Member

@wouterj thanks for the explanation. I understand it now :) Would it make sense to change all double quotes by single quotes then?

@xabbuh xabbuh merged commit 818d734 into symfony:2.3 Oct 3, 2015
xabbuh added a commit that referenced this pull request Oct 3, 2015
This PR was merged into the 2.3 branch.

Discussion
----------

fix YAML syntax highlighting

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | #5684

In YAML, double quoted strings can contain escape sequences. Thus, we would have to escape the backslash if we wanted to use them instead of single quotes (see the Platform.sh build to spot the difference now).

Commits
-------

818d734 fix YAML syntax highlighting
@xabbuh xabbuh deleted the fix-syntax-highlighting branch October 3, 2015 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants