File: test_comma_and_at.txt

package info (click to toggle)
pygments 2.14.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,496 kB
  • sloc: python: 96,379; javascript: 238; makefile: 191; sh: 80; lisp: 74
file content (131 lines) | stat: -rw-r--r-- 3,127 bytes parent folder | download | duplicates (2)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
---input---
# Alt and arrow keys to scroll
set scroll_amount 2
bind Text <Alt-Up> {
    %W yview scroll -$scroll_amount units
    %W mark set insert @0,[expr [winfo height %W] / 2]
}
bind Text <Alt-Down> {
    %W yview scroll $scroll_amount units
    %W mark set insert @0,[expr [winfo height %W] / 2]
}

---tokens---
'#'           Comment
' Alt and arrow keys to scroll\n' Comment

'set'         Keyword
' '           Text.Whitespace
'scroll_amount' Text
' '           Text.Whitespace
'2'           Literal.Number.Integer
'\n'          Text

'bind'        Name.Variable
' '           Text.Whitespace
'Text'        Text
' '           Text.Whitespace
'<'           Operator
'Alt-Up'      Text
'>'           Operator
' '           Text.Whitespace
'{'           Keyword
'\n    '      Text.Whitespace
'%'           Operator
'W'           Name.Variable
' '           Text.Whitespace
'yview'       Text
' '           Text.Whitespace
'scroll'      Text
' '           Text.Whitespace
'-'           Operator
'$scroll_amount' Name.Variable
' '           Text.Whitespace
'units'       Text
'\n'          Text

'    '        Text.Whitespace
'%'           Operator
'W'           Name.Variable
' '           Text.Whitespace
'mark'        Text
' '           Text.Whitespace
'set'         Text
' '           Text.Whitespace
'insert'      Text
' '           Text.Whitespace
'@0,'         Text
'['           Keyword
'expr'        Keyword
' '           Text.Whitespace
'['           Keyword
'winfo'       Name.Variable
' '           Text.Whitespace
'height'      Text
' '           Text.Whitespace
'%'           Operator
'W'           Text
']'           Keyword
' '           Text.Whitespace
'/'           Operator
' '           Text.Whitespace
'2'           Literal.Number.Integer
']'           Keyword
'\n'          Text

'}'           Keyword
'\n'          Text

'bind'        Name.Variable
' '           Text.Whitespace
'Text'        Text
' '           Text.Whitespace
'<'           Operator
'Alt-Down'    Text
'>'           Operator
' '           Text.Whitespace
'{'           Keyword
'\n    '      Text.Whitespace
'%'           Operator
'W'           Name.Variable
' '           Text.Whitespace
'yview'       Text
' '           Text.Whitespace
'scroll'      Text
' '           Text.Whitespace
'$scroll_amount' Name.Variable
' '           Text.Whitespace
'units'       Text
'\n'          Text

'    '        Text.Whitespace
'%'           Operator
'W'           Name.Variable
' '           Text.Whitespace
'mark'        Text
' '           Text.Whitespace
'set'         Text
' '           Text.Whitespace
'insert'      Text
' '           Text.Whitespace
'@0,'         Text
'['           Keyword
'expr'        Keyword
' '           Text.Whitespace
'['           Keyword
'winfo'       Name.Variable
' '           Text.Whitespace
'height'      Text
' '           Text.Whitespace
'%'           Operator
'W'           Text
']'           Keyword
' '           Text.Whitespace
'/'           Operator
' '           Text.Whitespace
'2'           Literal.Number.Integer
']'           Keyword
'\n'          Text

'}'           Keyword
'\n'          Text