File: test_soft_kwds.txt

package info (click to toggle)
pygments 2.18.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,184 kB
  • sloc: python: 103,327; javascript: 238; makefile: 142; sh: 84; lisp: 74
file content (67 lines) | stat: -rw-r--r-- 1,512 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---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