tartrazine/tests/python/test_walrus_operator.txt

22 lines
455 B
Plaintext

# Tests that ':=' is recognized as an Operator
---input---
if (a := 2) > 4:
---tokens---
'if' Keyword
' ' Text
'(' Punctuation
'a' Name
' ' Text
':=' Operator
' ' Text
'2' Literal.Number.Integer
')' Punctuation
' ' Text
'>' Operator
' ' Text
'4' Literal.Number.Integer
':' Punctuation
'\n' Text.Whitespace