1 # $MirOS: contrib/code/jupp/syntax/fortran.jsf.in,v 1.2 2008/05/13 16:17:44 tg Exp $
3 # JOE syntax highlight file for FORTRAN
4 # Heavily improved by: Malte Thoma (thoma@uni-muenster.de)
7 # in: 4. eq. -- does not recognize the .eq.
8 # needs more intrinsics.
20 # First character of line...
25 "cC*" comment recolor=-1
38 "!" comment recolor=-1
40 "0-9" first_number recolor=-1
43 "a-zA-Z_" ident buffer
45 :first_number Constant
52 * idle recolor=-2 noeat
53 "0-9" second_number recolor=-2
54 " \ta-zA-Z" operator1 noeat recolor=-2
59 * operator buffer noeat
62 # Default color is Idle for unknown operator
67 ". \t" unknown noeat istrings
100 # For distrinuishing between 4.e1 and 4.eq.
102 :second_start Constant
104 "a-zA-Z" operator1 noeat recolor=-2
116 ". \t" op noeat recolor=-4
118 :second_number Constant
136 :maybe_end_string Constant
141 * idle noeat istrings
164 "doubleprecision" type
244 "(" idle noeat istrings
245 # Keywords have to be duplicated here...
268 "doubleprecision" type
347 # Here are instrinsics
356 "allocated" intrinsic
362 "associated" intrinsic
376 "date_and_time" intrinsic
380 "dot_product" intrinsic
416 "maxexponent" intrinsic
421 "minexponent" intrinsic
435 "random_number" intrinsic
436 "random_seed" intrinsic
441 "rrspacing" intrinsic
444 "selected_int_kind" intrinsic
445 "selected_real_kind" intrinsic
446 "set_exponent" intrinsic
456 "system_clock" intrinsic
461 "transpose" intrinsic
472 # Whitespace after an identifier... we wait to see if there is a "("
474 * idle noeat istrings
497 "doubleprecision" type
576 "(" idle noeat istrings
577 # Keywords have to be duplicated here...
600 "doubleprecision" type
678 # Here are instrinsics
687 "allocated" intrinsic
693 "associated" intrinsic
707 "date_and_time" intrinsic
711 "dot_product" intrinsic
747 "maxexponent" intrinsic
752 "minexponent" intrinsic
766 "random_number" intrinsic
767 "random_seed" intrinsic
772 "rrspacing" intrinsic
775 "selected_int_kind" intrinsic
776 "selected_real_kind" intrinsic
777 "set_exponent" intrinsic
787 "system_clock" intrinsic
792 "transpose" intrinsic