fortran.nanorc (1996B)
1 ## Syntax highlighting for Fortran 90/95. 2 3 ## Original author: Pascal Gentil 4 5 syntax fortran "\.(f|for|f90|f95)$" 6 comment "!" 7 8 color red "\<[0-9]+\>" 9 10 icolor green "\<(action|advance|all|allocatable|allocated|any|apostrophe)\>" 11 icolor green "\<(append|asis|assign|assignment|associated|character|common)\>" 12 icolor green "\<(complex|data|default|delim|dimension|double precision)\>" 13 icolor green "\<(elemental|epsilon|external|file|fmt|form|format|huge)\>" 14 icolor green "\<(implicit|include|index|inquire|integer|intent|interface)\>" 15 icolor green "\<(intrinsic|iostat|kind|logical|module|none|null|only)\>" 16 icolor green "\<(operator|optional|pack|parameter|pointer|position|private)\>" 17 icolor green "\<(program|public|real|recl|recursive|selected_int_kind)\>" 18 icolor green "\<(selected_real_kind|subroutine|status)\>" 19 20 icolor cyan "\<(abs|achar|adjustl|adjustr|allocate|bit_size|call|char)\>" 21 icolor cyan "\<(close|contains|count|cpu_time|cshift|date_and_time)\>" 22 icolor cyan "\<(deallocate|digits|dot_product|eor|eoshift|function|iachar)\>" 23 icolor cyan "\<(iand|ibclr|ibits|ibset|ichar|ieor|iolength|ior|ishft|ishftc)\>" 24 icolor cyan "\<(lbound|len|len_trim|matmul|maxexponent|maxloc|maxval|merge)\>" 25 icolor cyan "\<(minexponent|minloc|minval|mvbits|namelist|nearest|nullify)\>" 26 icolor cyan "\<(open|pad|present|print|product|pure|quote|radix)\>" 27 icolor cyan "\<(random_number|random_seed|range|read|readwrite|replace)\>" 28 icolor cyan "\<(reshape|rewind|save|scan|sequence|shape|sign|size|spacing)\>" 29 icolor cyan "\<(spread|sum|system_clock|target|transfer|transpose|trim)\>" 30 icolor cyan "\<(ubound|unpack|verify|write|tiny|type|use|yes)\>" 31 32 icolor yellow "\<(.and.|case|do|else|else?if|else?where|end|end?do|end?if)\>" 33 icolor yellow "\<(end?select|.eqv.|forall|if|lge|lgt|lle|llt|.neqv.|.not.)\>" 34 icolor yellow "\<(.or.|repeat|select case|then|where|while)\>" 35 36 icolor magenta "\<(continue|cycle|exit|go?to|result|return)\>" 37 38 # Strings. 39 color yellow ""([^"\]|\\.)*"" 40 41 # Comments. 42 color blue "!.*"