File: example1.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 (77 lines) | stat: -rw-r--r-- 1,547 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
68
69
70
71
72
73
74
75
76
77
---input---
[Section A]
KeyOne=value 1
KeyTwo=value 2

# a comment

[Section B]
Setting="something" "some thing" "…"
KeyTwo=value 2 \
       value 2 continued

[Section C]
KeyThree=value 3\
# this line is ignored
; this line is ignored too
       value 3 continued

---tokens---
'[Section A]' Keyword
'\n'          Text.Whitespace

'KeyOne'      Name.Attribute
'='           Operator
'value 1'     Literal.String
'\n'          Text.Whitespace

'KeyTwo'      Name.Attribute
'='           Operator
'value 2'     Literal.String
'\n'          Text.Whitespace

'\n'          Text.Whitespace

'# a comment' Comment.Single
'\n'          Text.Whitespace

'\n'          Text.Whitespace

'[Section B]' Keyword
'\n'          Text.Whitespace

'Setting'     Name.Attribute
'='           Operator
'"something" "some thing" "…"' Literal.String
'\n'          Text.Whitespace

'KeyTwo'      Name.Attribute
'='           Operator
'value 2 '    Literal.String
'\\'          Text
'\n'          Text.Whitespace

'       '     Text.Whitespace
'value 2 continued' Literal.String
'\n'          Text.Whitespace

'\n'          Text.Whitespace

'[Section C]' Keyword
'\n'          Text.Whitespace

'KeyThree'    Name.Attribute
'='           Operator
'value 3'     Literal.String
'\\'          Text
'\n'          Text.Whitespace

'# this line is ignored' Comment.Single
'\n'          Text.Whitespace

'; this line is ignored too' Comment.Single
'\n'          Text.Whitespace

'       '     Text.Whitespace
'value 3 continued' Literal.String
'\n'          Text.Whitespace