Skip to content

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Sep 9, 2014

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

Double quoted strings are the only scalar style capable of expressing arbitrary strings, by using “\” escape sequences.

\w and \d are invalid escape sequences in Yaml, causing the Yaml highlighter to fail.

@stof
Copy link
Member

stof commented Sep 13, 2014

👍

@xabbuh
Copy link
Member

xabbuh commented Sep 13, 2014

👍 Would be nice if there was an option to let Sphinx raise a warning when it cannot properly highlight a code block for which it was expected.

@stof
Copy link
Member

stof commented Sep 13, 2014

@xabbuh
Copy link
Member

xabbuh commented Sep 13, 2014

Thank you @stof

@weaverryan
Copy link
Member

Thanks guys!

@weaverryan weaverryan merged commit f4b5dc6 into 2.3 Sep 15, 2014
weaverryan added a commit that referenced this pull request Sep 15, 2014
This PR was merged into the 2.3 branch.

Discussion
----------

Fixed code highlighting

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

 > Double quoted strings are the only scalar style capable of expressing arbitrary strings, by using “\” escape sequences.
 > - http://yaml.org/spec/1.1/#id904245

`\w` and `\d` are invalid escape sequences in Yaml, causing the Yaml highlighter to fail.

Commits
-------

f4b5dc6 Fixed code highlighting
@wouterj wouterj deleted the fix-highlih branch October 23, 2014 09:27
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