Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Pygments / tests / snippets / python / test_walrus_operator.txt
Size: Mime:
# 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