Skip to content

Commit

Permalink
minor #4215 Fixed code highlighting (WouterJ)
Browse files Browse the repository at this point in the history
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 8591b87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reference/constraints/Regex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -98,7 +98,7 @@ message:
properties:
firstName:
- Regex:
pattern: "/\d/"
pattern: '/\d/'
match: false
message: Your name cannot contain a number
Expand Down

0 comments on commit 8591b87

Please sign in to comment.