diff options
| author | Jean-Abou-Samra <37271310+Jean-Abou-Samra@users.noreply.github.com> | 2021-07-06 22:20:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-06 22:20:03 +0200 |
| commit | 2cb532d83dbcd022af413a299679e3018af8b98a (patch) | |
| tree | 795cf31e03a4c5194e9de968a4780b1200a56b92 /doc | |
| parent | f0ff1bad7122f2604c54401b7ef1547bbeb4260f (diff) | |
| download | pygments-git-2cb532d83dbcd022af413a299679e3018af8b98a.tar.gz | |
Support error locations in Python tracebacks (#1852)
Support both single carets for syntax errors (Python 2 and 3)
and fine-grained error locations with several carets (Python 3.11+).
Previously, the carets were highlighted as operators. This uses
a new token, Token.Punctuation.Marker. For now, no style supports
it specifically. In the future, styles might start differentiating
it from Token.Punctuation.
[Closes #1850.]
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/docs/tokens.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/docs/tokens.rst b/doc/docs/tokens.rst index 801fc638..f5de6756 100644 --- a/doc/docs/tokens.rst +++ b/doc/docs/tokens.rst @@ -306,6 +306,12 @@ Punctuation `Punctuation` For any punctuation which is not an operator (e.g. ``[``, ``(``...) +`Punctuation.Marker` + For markers that point to a location (e.g., carets in Python + tracebacks for syntax errors). + + .. versionadded:: 2.10 + Comments ======== |
