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