1
0
mirror of https://github.com/cmur2/joe-syntax.git synced 2024-11-18 20:56:17 +01:00
joe-syntax/puppet.jsf

143 lines
2.1 KiB
Plaintext
Raw 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
"#" comment recolor=-1
"{[]}" brace recolor=-1
"0" first_digit recolor=-1
"1-9" decimal recolor=-1
"\"" string recolor=-1
"'" char recolor=-1
"/" regex recolor=-1
"$" 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
:comment Comment
* comment
"\n" idle
:brace Brace
* idle noeat
: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 16:02:42 +02:00
:type Type
* idle noeat
"a-zA-Z0-9_" type
2012-07-07 14:44:42 +02:00
:ident Idle
* idle noeat strings
"case" kw
"class" kw
"else" kw
"elsif" kw
"false" kw
"if" kw
"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