summaryrefslogtreecommitdiff
path: root/tests/test_basic_api.py
diff options
context:
space:
mode:
authorBrett Slatkin <brett@haxor.com>2020-02-02 20:35:20 -0800
committerBrett Slatkin <brett@haxor.com>2020-02-02 20:35:20 -0800
commit29c8893dac0343706c510c4f4e7c4dac97ae2f87 (patch)
treee0449ff4a3d80f4083681b9f4789831b1bdc038d /tests/test_basic_api.py
parent0cea7133313766e26edad46a2377eacbf7cbe459 (diff)
downloadpygments-git-29c8893dac0343706c510c4f4e7c4dac97ae2f87.tar.gz
Adds the walrus operator to the Python3 lexer.
- The walrus operator, also known as assignment expressions, was introduced in Python 3.8 - Moves the Token.Operator matching root above Token.Punctuation so the walrus operator takes precedence - Includes a test to make sure this behavior doesn't regress since it's sensitive to the order of expressions - Fixes #1381
Diffstat (limited to 'tests/test_basic_api.py')
0 files changed, 0 insertions, 0 deletions