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