summaryrefslogtreecommitdiff
path: root/tests/lexers/puppet/example.txt
blob: f2cbdef8df7b7dadb3125e17bcadcc6a160f55f2 (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
---input---
exec { 'grep':
    command => 'grep "\'" -rI *',
    path    => '/bin:/usr/bin',
}

node default {
    notify {"Hello World":;}
}

---tokens---
'exec'        Keyword
' '           Text
'{'           Punctuation
' '           Text
"'grep'"      Literal.String
':'           Punctuation
'\n'          Text

'    '        Text
'command'     Name.Attribute
' '           Text
'=>'          Operator
' '           Text
'\'grep "\\\'" -rI *\'' Literal.String
','           Punctuation
'\n'          Text

'    '        Text
'path'        Name.Attribute
'    '        Text
'=>'          Operator
' '           Text
"'/bin:/usr/bin'" Literal.String
','           Punctuation
'\n'          Text

'}'           Punctuation
'\n'          Text

'\n'          Text

'node'        Keyword
' '           Text
'default'     Keyword
' '           Text
'{'           Punctuation
'\n'          Text

'    '        Text
'notify'      Keyword
' '           Text
'{'           Punctuation
'"Hello World"' Literal.String
':'           Punctuation
';'           Punctuation
'}'           Punctuation
'\n'          Text

'}'           Punctuation
'\n'          Text