summaryrefslogtreecommitdiff
path: root/tests/snippets/python
Commit message (Collapse)AuthorAgeFilesLines
* 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.