summaryrefslogtreecommitdiff
path: root/tests/snippets/python
Commit message (Collapse)AuthorAgeFilesLines
* Improve whitespace handling in Python.Matthäus G. Chajdas2022-12-1179-124/+124
| | | | | | | | | This triggers a new case in the HtmlFormatter, which emits an empty span at the end of the line for a new line, as those are removed by the split-by-parts code. This requires separate post-processing. Doesn't fix all whitespace issues with Python either, but we're done to 360 failing examples with that, from previously >400.
* Disable highlighting of some escape codes for python bytes literals (#2204)LaurenceWarne2022-08-152-0/+44
| | | | | | | | Disable highlighting of unicode escape codes in python bytes literals, as described in https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals. So escape codes of the form "\N{name}", "\uxxxx" and "\Uxxxxxxxx" will no longer be highlighted within bytes literals. Add tests for escape code highlighting in string and bytes literals.
* Fix python lexer parsing floats incorrectly (#1768)Liam Stevens2021-04-101-0/+75
| | | | | | | | | * lexers: python: add test cases for floats * lexers: python: fix float lexing * lexer:python:fixed test syntax Co-authored-by: Aidan Do <giahuydo99@gmail.com>
* Rename "tests/lexers" to "tests/snippets" and update the contributionGeorg Brandl2021-01-2076-0/+1450
docs to point to both snippets and examplefiles.