puppet.jsf.in (2522B)
1 # JOE syntax highlight file for Puppet 2 # by Christian Nicolai (http://mycrobase.de) 3 4 =Idle 5 =Comment green 6 =CommentLabel bold green 7 =Constant cyan 8 =Escape bold cyan 9 =Type bold 10 =Keyword bold 11 =Bad bold red 12 =Var yellow #fg_310 # brown 13 =Brace magenta 14 15 =KeywordAttr bold 16 17 :idle Idle 18 * idle 19 "\n" idle 20 "#" line_comment recolor=-1 21 "{[]}" brace recolor=-1 22 "0" first_digit recolor=-1 23 "1-9" decimal recolor=-1 24 "\"" string recolor=-1 25 "'" char recolor=-1 26 "/" slash 27 "$" variable recolor=-1 28 "A-Z" type recolor=-1 29 "a-z" ident buffer 30 31 :line_comment Comment 32 * line_comment 33 "\n" idle 34 35 :comment Comment 36 * comment 37 "*" maybe_end_comment 38 39 :maybe_end_comment Comment 40 * comment noeat 41 "/" idle 42 "*" maybe_end_comment 43 44 :brace Brace 45 * idle noeat 46 47 # that's not completely accurate since a regex may start with a * too 48 :slash Idle 49 * regex noeat recolor=-2 50 "*" comment recolor=-2 51 52 :first_digit Constant 53 * idle noeat 54 "0-7" octal 55 "89" bad_number recolor=-1 56 57 :bad_number Bad 58 * idle noeat 59 "0-9" bad_number 60 61 :octal Constant 62 * idle noeat 63 "0-7_" octal 64 "89" bad_number recolor=-1 65 66 :decimal Constant 67 * idle noeat 68 "0-9_" decimal 69 70 :char Constant 71 * char 72 "'" idle 73 74 :string Constant 75 * string 76 "\"" idle 77 "$" maybe_string_subst recolor=-1 78 79 :maybe_string_subst Constant 80 * string noeat 81 "{" string_subst recolor=-2 82 83 :string_subst Escape 84 * string_subst 85 "}" string 86 87 :regex Constant 88 * regex 89 "\\" regex_quote recolor=-1 90 "/" idle 91 92 :regex_quote Escape 93 * regex 94 95 :variable Var 96 * idle noeat 97 "a-zA-Z0-9_" variable 98 99 :type Type 100 * idle noeat 101 "a-zA-Z0-9_" type 102 103 :ident Idle 104 * idle noeat strings 105 "case" kw 106 "class" kw 107 "define" kw 108 "else" kw 109 "elsif" kw 110 "false" kw 111 "if" kw 112 "in" kw 113 "inherits" kw 114 "true" kw 115 "undef" kw 116 # prominent attrs 117 "ensure" kw_attr 118 "default" kw_attr 119 # methods 120 "alert" method 121 "create_resources" method 122 "crit" method 123 "debug" method 124 "defined" method 125 "emerg" method 126 "err" method 127 "extlookup" method 128 "fail" method 129 "file" method 130 "fqdn_rand" method 131 "generate" method 132 "include" method 133 "info" method 134 "inline_template" method 135 "md5" method 136 "notice" method 137 "realize" method 138 "regsubst" method 139 "require" method 140 "search" method 141 "sha1" method 142 "shellquote" method 143 "split" method 144 "sprintf" method 145 "tag" method 146 "tagged" method 147 "template" method 148 "versioncmp" method 149 "warning" method 150 done 151 "a-zA-Z0-9_" ident 152 153 :kw Keyword 154 * idle noeat 155 156 :kw_attr KeywordAttr 157 * idle noeat 158 159 :method Keyword 160 * idle noeat