Fixed #30365 -- Fixed syntax highlighting in SQL examples.

Sphinx interprets some "%[a-z]" in SQL statements as a
"Literal.String.Interpol" which leads to incorrect highlighting.
This commit is contained in:
Daniel Musketa 2019-04-13 15:49:55 +02:00 committed by Mariusz Felisiak
parent 25b5eea8cd
commit 6fd9c9daa6
6 changed files with 151 additions and 52 deletions

View file

@ -840,7 +840,9 @@ together. For example::
Q(pub_date=date(2005, 5, 2)) | Q(pub_date=date(2005, 5, 6))
)
... roughly translates into the SQL::
... roughly translates into the SQL:
.. code-block:: sql
SELECT * from polls WHERE question LIKE 'Who%'
AND (pub_date = '2005-05-02' OR pub_date = '2005-05-06')