joe-syntax/puppet.jsf

160 lines
2.4 KiB
Plaintext
Raw Permalink Normal View History

2012-07-07 14:44:42 +02:00
# JOE syntax highlight file for Puppet
=Idle
=Comment green
=CommentLabel bold green
=Constant cyan
=Escape bold cyan
=Type bold
=Keyword bold
=Bad bold red
2012-07-07 16:02:42 +02:00
=Var fg_310 # brown
2012-07-07 14:44:42 +02:00
=Brace magenta
=KeywordAttr bold
:idle Idle
* idle
"\n" idle
"#" line_comment recolor=-1
2012-07-07 14:44:42 +02:00
"{[]}" brace recolor=-1
"0" first_digit recolor=-1
"1-9" decimal recolor=-1
"\"" string recolor=-1
"'" char recolor=-1
"/" slash
2012-07-07 14:44:42 +02:00
"$" variable recolor=-1
2012-07-07 16:02:42 +02:00
"A-Z" type recolor=-1
"a-z" ident buffer
2012-07-07 14:44:42 +02:00
:line_comment Comment
* line_comment
2012-07-07 14:44:42 +02:00
"\n" idle
:comment Comment
* comment
"*" maybe_end_comment
:maybe_end_comment Comment
* comment noeat
"/" idle
"*" maybe_end_comment
2012-07-07 14:44:42 +02:00
: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
2012-07-07 14:44:42 +02:00
:first_digit Constant
* idle noeat
"0-7" octal
"89" bad_number recolor=-1
:bad_number Bad
* idle noeat
"0-9" bad_number
:octal Constant
* idle noeat
"0-7_" octal
"89" bad_number recolor=-1
:decimal Constant
* idle noeat
"0-9_" decimal
:char Constant
* char
"'" idle
:string Constant
* string
"\"" idle
"$" maybe_string_subst recolor=-1
:maybe_string_subst Constant
* string noeat
"{" string_subst recolor=-2
:string_subst Escape
* string_subst
"}" string
:regex Constant
* regex
"\\" regex_quote recolor=-1
"/" idle
:regex_quote Escape
* regex
:variable Var
* idle noeat
"a-zA-Z0-9_" variable
2012-07-07 14:44:42 +02:00
2012-07-07 16:02:42 +02:00
:type Type
* idle noeat
"a-zA-Z0-9_" type
2012-07-07 16:02:42 +02:00
2012-07-07 14:44:42 +02:00
:ident Idle
* idle noeat strings
"case" kw
"class" kw
"define" kw
2012-07-07 14:44:42 +02:00
"else" kw
"elsif" kw
"false" kw
"if" kw
"in" kw
"inherits" kw
2012-07-07 14:44:42 +02:00
"true" kw
"undef" kw
# prominent attrs
"ensure" kw_attr
2012-07-09 11:19:37 +02:00
"default" kw_attr
2012-07-07 14:44:42 +02:00
# methods
2012-07-09 11:19:37 +02:00
"alert" method
"create_resources" method
"crit" method
"debug" method
"defined" method
"emerg" method
"err" method
"extlookup" method
2012-07-07 14:44:42 +02:00
"fail" method
2012-07-09 11:19:37 +02:00
"file" method
"fqdn_rand" method
"generate" method
"include" method
"info" method
"inline_template" method
"md5" method
2012-07-07 14:44:42 +02:00
"notice" method
2012-07-09 11:19:37 +02:00
"realize" method
"regsubst" method
"require" method
"search" method
"sha1" method
"shellquote" method
"split" method
"sprintf" method
"tag" method
"tagged" method
2012-07-07 14:44:42 +02:00
"template" method
2012-07-09 11:19:37 +02:00
"versioncmp" method
"warning" method
2012-07-07 14:44:42 +02:00
done
"a-zA-Z0-9_" ident
:kw Keyword
* idle noeat
:kw_attr KeywordAttr
* idle noeat
:method Keyword
* idle noeat