Permalink
Browse files

minor #4215 Fixed code highlighting (WouterJ)

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
  • Loading branch information...
weaverryan committed Sep 15, 2014
2 parents f276e34 + f4b5dc6 commit 8591b872facc7a6b4bd1447d5438fe68cd21e112
Showing with 2 additions and 2 deletions.
  1. +2 −2 reference/constraints/Regex.rst
@@ -32,7 +32,7 @@ characters at the beginning of your string:
Acme\BlogBundle\Entity\Author:
properties:
description:
- Regex: "/^\w+/"
- Regex: '/^\w+/'
.. code-block:: php-annotations
@@ -98,7 +98,7 @@ message:
properties:
firstName:
- Regex:
pattern: "/\d/"
pattern: '/\d/'
match: false
message: Your name cannot contain a number

0 comments on commit 8591b87

Please sign in to comment.