mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-13 23:12:24 +00:00
22 lines
455 B
Plaintext
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
|