This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/snippets/python/test_soft_kwds.txt

67 lines
1.5 KiB
Text

---input---
match spam:
case Some(x):
print(f"found {x}")
case None:
print("found nothing")
case _:
assert False
---tokens---
'match' Keyword
' ' Text
'spam' Name
':' Punctuation
'\n' Text.Whitespace
' ' Text
'case' Keyword
' ' Text
'Some' Name
'(' Punctuation
'x' Name
')' Punctuation
':' Punctuation
'\n' Text.Whitespace
' ' Text
'print' Name.Builtin
'(' Punctuation
'f' Literal.String.Affix
'"' Literal.String.Double
'found ' Literal.String.Double
'{' Literal.String.Interpol
'x' Name
'}' Literal.String.Interpol
'"' Literal.String.Double
')' Punctuation
'\n' Text.Whitespace
' ' Text
'case' Keyword
' ' Text
'None' Keyword.Constant
':' Punctuation
'\n' Text.Whitespace
' ' Text
'print' Name.Builtin
'(' Punctuation
'"' Literal.String.Double
'found nothing' Literal.String.Double
'"' Literal.String.Double
')' Punctuation
'\n' Text.Whitespace
' ' Text
'case' Keyword
' ' Text.Whitespace
'_' Keyword
':' Punctuation
'\n' Text.Whitespace
' ' Text
'assert' Keyword
' ' Text
'False' Keyword.Constant
'\n' Text.Whitespace