summaryrefslogtreecommitdiff
path: root/tests/lexers/pkgconfig/example.txt
blob: 91419a5c4db063b4a0285d094022c5c75503c5d2 (plain)
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
---input---
# This is for a fictional package `yet another portable hatchpotch generator'.
prefix=/usr/local/opt/site/private # define variable `prefix`
exec_prefix=${prefix} # using variable reference
libdir=${exec_prefix}/lib
includedir=${prefix}/include
just_for_test=$${this is not a part of variable reference} # escape with `$$`

Name: YAPHatchPotchGen
Description: Yet Another Portable HatchPotch GENerator.
Version: 352.9.3
URL: http://www9.yaphatchpotchgen.net  # Don't access.
Requires: piyohogelib-9.0 = 9.5.3
Requires.private: nyorolib-3.0 = 3.0.9
Conflicts: apiyohoge <= 8.3
Libs: -L${libdir} -lyaphatchpotchgen-352.9 # using variable reference
Libs.private: -ll -ly
Cflags: -I${includedir}/piyohogelib-9.0 -I${libdir}/yaphatchpotchgen/include


---tokens---
"# This is for a fictional package `yet another portable hatchpotch generator'." Comment.Single
'\n'          Text

'prefix'      Name.Attribute
'='           Operator
'/usr/local/opt/site/private ' Text
'# define variable `prefix`' Comment.Single
'\n'          Text

'exec_prefix' Name.Attribute
'='           Operator
'${'          Literal.String.Interpol
'prefix'      Name.Attribute
'}'           Literal.String.Interpol
' '           Text
'# using variable reference' Comment.Single
'\n'          Text

'libdir'      Name.Attribute
'='           Operator
'${'          Literal.String.Interpol
'exec_prefix' Name.Attribute
'}'           Literal.String.Interpol
'/lib'        Text
'\n'          Text

'includedir'  Name.Attribute
'='           Operator
'${'          Literal.String.Interpol
'prefix'      Name.Attribute
'}'           Literal.String.Interpol
'/include'    Text
'\n'          Text

'just_for_test' Name.Attribute
'='           Operator
'$$'          Text
'{'           Text
'this is not a part of variable reference' Text
'}'           Text
' '           Text
'# escape with `$$`' Comment.Single
'\n'          Text

'\n'          Text

'Name'        Name.Tag
':'           Punctuation
' YAPHatchPotchGen' Text
'\n'          Text

'Description' Name.Tag
':'           Punctuation
' Yet Another Portable HatchPotch GENerator.' Text
'\n'          Text

'Version'     Name.Tag
':'           Punctuation
' 352.9.3'    Text
'\n'          Text

'URL'         Name.Tag
':'           Punctuation
' http://www9.yaphatchpotchgen.net  ' Text
"# Don't access." Comment.Single
'\n'          Text

'Requires'    Name.Tag
':'           Punctuation
' piyohogelib-9.0 = 9.5.3' Text
'\n'          Text

'Requires.private' Name.Tag
':'           Punctuation
' nyorolib-3.0 = 3.0.9' Text
'\n'          Text

'Conflicts'   Name.Tag
':'           Punctuation
' apiyohoge <= 8.3' Text
'\n'          Text

'Libs'        Name.Tag
':'           Punctuation
' -L'         Text
'${'          Literal.String.Interpol
'libdir'      Name.Attribute
'}'           Literal.String.Interpol
' -lyaphatchpotchgen-352.9 ' Text
'# using variable reference' Comment.Single
'\n'          Text

'Libs.private' Name.Tag
':'           Punctuation
' -ll -ly'    Text
'\n'          Text

'Cflags'      Name.Tag
':'           Punctuation
' -I'         Text
'${'          Literal.String.Interpol
'includedir'  Name.Attribute
'}'           Literal.String.Interpol
'/piyohogelib-9.0 -I' Text
'${'          Literal.String.Interpol
'libdir'      Name.Attribute
'}'           Literal.String.Interpol
'/yaphatchpotchgen/include' Text
'\n'          Text