File: puppet.jsf

package info (click to toggle)
joe 4.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,308 kB
  • sloc: ansic: 51,623; sh: 4,358; makefile: 149; csh: 26
file content (167 lines) | stat: -rw-r--r-- 2,769 bytes parent folder | download | duplicates (3)
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# JOE syntax highlight file for Puppet
# by Christian Nicolai (http://mycrobase.de)

=Idle
=Ident
=Comment
=Constant
=Number		+Constant
=String		+Constant
=Regex		+String
=StringEscape	+Escape
=StringVariable	+StringEscape
=RegexEscape	+StringEscape
=Type
=Keyword
=Bad
=Variable	+DefinedIdent
=Brace

=KeywordAttr	+Attr +Type

:idle Idle
	*		idle
	"\n"		idle
	"#"		line_comment	recolor=-1
	"{[]}"		brace		recolor=-1
	"0"		first_digit	recolor=-1
	"1-9"		decimal		recolor=-1
	"\""		string		recolor=-1
	"'"		char		recolor=-1
	"/"		slash
	"$"		variable	recolor=-1
	"A-Z"		type		recolor=-1
	"a-z"		ident		buffer
	
:line_comment Comment comment
	*		line_comment
	"BFHNTX"	line_comment	noeat call=comment_todo.comment_todo()
	"\n"		idle

:comment Comment comment
	*		comment
	"BFHNTX"	comment		noeat call=comment_todo.comment_todo()
	"*"		maybe_end_comment

:maybe_end_comment Comment comment
	*		comment		noeat
	"/"		idle
	"*"		maybe_end_comment

:brace Brace
	*		idle		noeat

# that's not completely accurate since a regex may start with a * too
:slash Idle
	*		regex		noeat recolor=-2
	"*"		comment		recolor=-2

:first_digit Number
	*		idle		noeat
	"0-7"		octal
	"89"		bad_number	recolor=-1

:bad_number Bad
	*		idle		noeat
	"0-9"		bad_number

:octal Number
	*		idle		noeat
	"0-7_"		octal
	"89"		bad_number	recolor=-1

:decimal Number
	*		idle		noeat
	"0-9_"		decimal

:char String string
	*		char
	"'"		idle

:string String string
	*		string
	"\""		idle
	"$"		maybe_string_subst	recolor=-1

:maybe_string_subst String string
	*		string		noeat
	"{"		string_subst	recolor=-2

:string_subst StringVariable string
	*		string_subst
	"}"		string

:regex Regex string
	*		regex
	"\\"		regex_quote	recolor=-1
	"/"		idle

:regex_quote RegexEscape string
	*		regex

:variable Variable
	*		idle		noeat
	"a-zA-Z0-9_"	variable

:type Type
	*		idle		noeat
	"a-zA-Z0-9_"	type

:ident Ident
	*		idle		noeat strings
	"case"		kw
	"class"		kw
	"define"	kw
	"else"		kw
	"elsif"		kw
	"false"		kw
	"if"		kw
	"in"		kw
	"inherits"	kw
	"true"		kw
	"undef"		kw
	# prominent attrs
	"ensure"	kw_attr
	"default"	kw_attr
	# methods
	"alert"		method
	"create_resources"	method
	"crit"		method
	"debug"		method
	"defined"	method
	"emerg"		method
	"err"		method
	"extlookup"	method
	"fail"		method
	"file"		method
	"fqdn_rand"	method
	"generate"	method
	"include"	method
	"info"		method
	"inline_template"	method
	"md5"		method
	"notice"	method
	"realize"	method
	"regsubst"	method
	"require"	method
	"search"	method
	"sha1"		method
	"shellquote"	method
	"split"		method
	"sprintf"	method
	"tag"		method
	"tagged"	method
	"template"	method
	"versioncmp"	method
	"warning"	method
done
	"a-zA-Z0-9_"	ident

:kw Keyword
	*		idle		noeat

:kw_attr KeywordAttr
	*		idle		noeat

:method Keyword
	*		idle		noeat