]> git.lizzy.rs Git - micro.git/blob - syntax_files/fortran.micro
Proper window resize handling
[micro.git] / syntax_files / fortran.micro
1 ## Here is an example for Fortran 90/95
2
3 syntax "Fortran" "\.([Ff]|[Ff]90|[Ff]95|[Ff][Oo][Rr])$"
4
5 #color red "\b[A-Z_]a[0-9A-Z_]+\b" 
6 color red "\b[0-9]+\b" 
7
8 color green (i) "\b(action|advance|all|allocatable|allocated|any|apostrophe)\b"
9 color green (i) "\b(append|asis|assign|assignment|associated|character|common)\b"
10 color green (i) "\b(complex|data|default|delim|dimension|double precision)\b"
11 color green (i) "\b(elemental|epsilon|external|file|fmt|form|format|huge)\b"
12 color green (i) "\b(implicit|include|index|inquire|integer|intent|interface)\b"
13 color green (i) "\b(intrinsic|iostat|kind|logical|module|none|null|only)\b"
14 color green (i) "\b(operator|optional|pack|parameter|pointer|position|private)\b"
15 color green (i) "\b(program|public|real|recl|recursive|selected_int_kind)\b"
16 color green (i) "\b(selected_real_kind|subroutine|status)\b"
17
18 color cyan (i) "\b(abs|achar|adjustl|adjustr|allocate|bit_size|call|char)\b" 
19 color cyan (i) "\b(close|contains|count|cpu_time|cshift|date_and_time)\b" 
20 color cyan (i) "\b(deallocate|digits|dot_product|eor|eoshift|function|iachar)\b" 
21 color cyan (i) "\b(iand|ibclr|ibits|ibset|ichar|ieor|iolength|ior|ishft|ishftc)\b" 
22 color cyan (i) "\b(lbound|len|len_trim|matmul|maxexponent|maxloc|maxval|merge)\b" 
23 color cyan (i) "\b(minexponent|minloc|minval|mvbits|namelist|nearest|nullify)\b" 
24 color cyan (i) "\b(open|pad|present|print|product|pure|quote|radix)\b" 
25 color cyan (i) "\b(random_number|random_seed|range|read|readwrite|replace)\b" 
26 color cyan (i) "\b(reshape|rewind|save|scan|sequence|shape|sign|size|spacing)\b" 
27 color cyan (i) "\b(spread|sum|system_clock|target|transfer|transpose|trim)\b" 
28 color cyan (i) "\b(ubound|unpack|verify|write|tiny|type|use|yes)\b"
29
30 color yellow (i) "\b(.and.|case|do|else|else?if|else?where|end|end?do|end?if)\b"
31 color yellow (i) "\b(end?select|.eqv.|forall|if|lge|lgt|lle|llt|.neqv.|.not.)\b"
32 color yellow (i) "\b(.or.|repeat|select case|then|where|while)\b"
33
34 color magenta (i) "\b(continue|cycle|exit|go?to|result|return)\b"
35
36 #Operator Color
37 color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"
38
39 #Parenthetical Color
40 color magenta "[(){}]" "\[" "\]"
41
42 # Add preprocessor commands.
43 color brightcyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)"
44
45 ## String highlighting.  
46 color cyan (i) "<[^=     ]*>" ""(\\.|[^"])*""
47 color cyan (i) "<[^=     ]*>" "'(\\.|[^"])*'"
48
49 ## Comment highlighting
50 color brightred (i) "!.*$" "(^[Cc]| [Cc]) .*$"
51
52