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.]
4 lines
129 B
Text
4 lines
129 B
Text
File "<stdin>", line 1
|
|
mismatch(]
|
|
^
|
|
SyntaxError: closing parenthesis ']' does not match opening parenthesis '('
|