tartrazine/spec/tests/python/test_walrus_operator.txt

22 lines
455 B
Plaintext
Raw Normal View History

2024-08-03 10:36:47 +00:00
# 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