lua.jsf (5252B)
1 # JOE syntax highlight file for LUA 2 3 =Idle 4 =Bad bold red 5 =Comment green 6 =Constant cyan 7 =Escape bold cyan 8 =Keyword bold 9 10 :idle Idle 11 * idle 12 "0" first_digit recolor=-1 13 "1-9" decimal recolor=-1 14 "." maybe_float 15 "\"" string recolor=-1 16 "'" char recolor=-1 17 "\i" ident buffer 18 "-" maybe_comment 19 "[" maybe_lua_string 20 21 :maybe_lua_string Idle 22 * idle noeat 23 "[" lua_string_0 recolor=-2 24 "=" maybe_lua_1 25 26 :maybe_lua_1 Idle 27 * idle noeat 28 "[" lua_string_1 recolor=-3 29 "=" maybe_lua_2 30 31 :maybe_lua_2 Idle 32 * idle noeat 33 "[" lua_string_2 recolor=-4 34 "=" maybe_lua_3 35 36 :maybe_lua_3 Idle 37 * idle noeat 38 "[" lua_string_3 recolor=-5 39 40 :lua_string_0 Constant 41 * lua_string_0 42 "]" lua_string_0_maybe_done 43 44 :lua_string_0_maybe_done Constant 45 * lua_string_0 noeat 46 "]" idle 47 48 :lua_string_1 Constant 49 * lua_string_1 50 "]" lua_string_1_maybe_donea 51 52 :lua_string_1_maybe_donea Constant 53 * lua_string_1 noeat 54 "=" lua_string_1_maybe_done 55 56 :lua_string_1_maybe_done Constant 57 * lua_string_1 noeat 58 "]" idle 59 60 :lua_string_2 Constant 61 * lua_string_2 62 "]" lua_string_2_maybe_donea 63 64 :lua_string_2_maybe_donea Constant 65 * lua_string_2 noeat 66 "=" lua_string_2_maybe_doneb 67 68 :lua_string_2_maybe_doneb Constant 69 * lua_string_2 noeat 70 "=" lua_string_2_maybe_done 71 72 :lua_string_2_maybe_done Constant 73 * lua_string_2 noeat 74 "]" idle 75 76 :lua_string_3 Constant 77 * lua_string_3 78 "]" lua_string_3_maybe_donea 79 80 :lua_string_3_maybe_donea Constant 81 * lua_string_3 noeat 82 "=" lua_string_3_maybe_doneb 83 84 :lua_string_3_maybe_doneb Constant 85 * lua_string_3 noeat 86 "=" lua_string_3_maybe_donec 87 88 :lua_string_3_maybe_donec Constant 89 * lua_string_3 noeat 90 "=" lua_string_3_maybe_done 91 92 :lua_string_3_maybe_done Constant 93 * lua_string_3 noeat 94 "]" idle 95 96 :maybe_comment Idle 97 * idle noeat 98 "-" maybe_long_comment recolor=-2 99 100 :maybe_long_comment Comment 101 * line_comment noeat 102 "[" maybe_long_comment_0 103 104 :maybe_long_comment_0 Comment 105 * line_comment noeat 106 "=" maybe_long_comment_1 107 "[" long_comment_0 108 109 :maybe_long_comment_1 Comment 110 * line_comment noeat 111 "=" maybe_long_comment_2 112 "[" long_comment_1 113 114 :maybe_long_comment_2 Comment 115 * line_comment noeat 116 "=" maybe_long_comment_3 117 "[" long_comment_2 118 119 :maybe_long_comment_3 Comment 120 * line_comment noeat 121 "[" long_comment_3 122 123 :long_comment_0 Comment 124 * long_comment_0 125 "]" maybe_done_comment_0 126 127 :maybe_done_comment_0 Comment 128 * long_comment_0 noeat 129 "]" idle 130 131 :long_comment_1 Comment 132 * long_comment_1 133 "]" maybe_done_comment_1a 134 135 :maybe_done_comment_1a Comment 136 * long_comment_1 noeat 137 "=" maybe_done_comment_1 138 139 :maybe_done_comment_1 Comment 140 * long_comment_1 noeat 141 "]" idle 142 143 :long_comment_2 Comment 144 * long_comment_2 145 "]" maybe_done_comment_2a 146 147 :maybe_done_comment_2a Comment 148 * long_comment_2 noeat 149 "=" maybe_done_comment_2b 150 151 :maybe_done_comment_2b Comment 152 * long_comment_2 noeat 153 "=" maybe_done_comment_2 154 155 :maybe_done_comment_2 Comment 156 * long_comment_2 noeat 157 "]" idle 158 159 :long_comment_3 Comment 160 * long_comment_3 161 "]" maybe_done_comment_3a 162 163 :maybe_done_comment_3a Comment 164 * long_comment_3 noeat 165 "=" maybe_done_comment_3b 166 167 :maybe_done_comment_3b Comment 168 * long_comment_3 noeat 169 "=" maybe_done_comment_3c 170 171 :maybe_done_comment_3c Comment 172 * long_comment_3 noeat 173 "=" maybe_done_comment_3 174 175 :maybe_done_comment_3 Comment 176 * long_comment_2 noeat 177 "]" idle 178 179 :line_comment Comment 180 * line_comment 181 "\n" idle 182 183 :first_digit Constant 184 * idle noeat 185 "xX" hex 186 "." float 187 "eE" epart 188 "0-7" octal 189 "89" bad_number recolor=-1 190 191 :bad_number Bad 192 * idle noeat 193 "0-9" bad_number 194 195 :octal Constant 196 * idle noeat 197 "0-7" octal 198 "89" bad_number recolor=-1 199 200 :hex Constant 201 * idle noeat 202 "0-9A-Fa-f" hex 203 204 :decimal Constant 205 * idle noeat 206 "0-9" decimal 207 "eE" epart 208 "." float 209 210 :maybe_float Constant 211 * idle recolor=-2 noeat 212 "0-9" float recolor=-2 213 214 :float Constant 215 * idle noeat 216 "eE" epart 217 "0-9" float 218 219 :epart Constant 220 * idle noeat 221 "0-9+\-" enum 222 223 :enum Constant 224 * idle noeat 225 "0-9" enum 226 227 :string Constant 228 * string 229 "\"" idle 230 "\\" string_escape recolor=-1 231 "%" string_control recolor=-1 232 233 :string_escape Escape 234 * string 235 "x" string_hex1 236 "0-7" string_octal2 237 "\n" string recolor=-2 238 239 :string_hex1 Escape 240 * string noeat 241 "0-9a-fA-F" string_hex2 242 243 :string_hex2 Escape 244 * string noeat 245 "0-9a-fA-F" string 246 247 :string_octal2 Escape 248 * string noeat 249 "0-7" string_octal3 250 251 :string_octal3 Escape 252 * string noeat 253 "0-7" string 254 255 :string_control Escape 256 * string 257 "\"" string noeat 258 "\n" reset 259 "0-9.\-+ #hjILtz$" string_control 260 261 :char Constant 262 * char 263 "\n" reset 264 "'" idle 265 "\\" char_escape recolor=-1 266 267 :char_escape Escape 268 * char 269 "x" char_hex1 270 "0-7" char_octal2 271 "\n" char recolor=-2 272 273 :char_hex1 Escape 274 * char noeat 275 "0-9a-fA-F" char_hex2 276 277 :char_hex2 Escape 278 * char noeat 279 "0-9a-fA-F" char 280 281 :char_octal2 Escape 282 * char noeat 283 "0-7" char_octal3 284 285 :char_octal3 Escape 286 * char noeat 287 "0-7" char 288 289 :ident Idle 290 * idle noeat strings 291 "and" kw 292 "end" kw 293 "in" kw 294 "repeat" kw 295 "break" kw 296 "false" kw 297 "local" kw 298 "return" kw 299 "do" kw 300 "for" kw 301 "nil" kw 302 "then" kw 303 "else" kw 304 "function" kw 305 "not" kw 306 "true" kw 307 "elseif" kw 308 "if" kw 309 "or" kw 310 "until" kw 311 "while" kw 312 done 313 "\c" ident 314 315 :kw Keyword 316 * idle noeat