mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-06 15:10:27 +09:00
* Adds new syntax groups and docs * Large refactor of syntax highlighting files * Changed keybindings for changing tabs. * Improved the documentation. * Added F3 for find to default bindings. * Massive overhaul of the syntax files * Phase 1 color-scheme updates. * The new colorschemes. * Colorscheme and syntax updates. * Tiny fix to the cmc theme. * Another phase of colorschemes and testing gitconfig. * Fixed haskell error * Fortran fix * Delete test.txt Heh, sorry about forgetting to do this again.
52 lines
2.5 KiB
Plaintext
52 lines
2.5 KiB
Plaintext
## Here is an example for Fortran 90/95
|
|
|
|
syntax "fortran" "\.([Ff]|[Ff]90|[Ff]95|[Ff][Oo][Rr])$"
|
|
|
|
#color red "\b[A-Z_]a[0-9A-Z_]+\b"
|
|
color constant.number "\b[0-9]+\b"
|
|
|
|
color type "(?i)\b(action|advance|all|allocatable|allocated|any|apostrophe)\b"
|
|
color type "(?i)\b(append|asis|assign|assignment|associated|character|common)\b"
|
|
color type "(?i)\b(complex|data|default|delim|dimension|double precision)\b"
|
|
color type "(?i)\b(elemental|epsilon|external|file|fmt|form|format|huge)\b"
|
|
color type "(?i)\b(implicit|include|index|inquire|integer|intent|interface)\b"
|
|
color type "(?i)\b(intrinsic|iostat|kind|logical|module|none|null|only)\\b"
|
|
color type "(?i)\b(operator|optional|pack|parameter|pointer|position|private)\b"
|
|
color type "(?i)\b(program|public|real|recl|recursive|selected_int_kind)\b"
|
|
color type "(?i)\b(selected_real_kind|subroutine|status)\b"
|
|
|
|
color constant "(?i)\b(abs|achar|adjustl|adjustr|allocate|bit_size|call|char)\b"
|
|
color constant "(?i)\b(close|contains|count|cpu_time|cshift|date_and_time)\b"
|
|
color constant "(?i)\b(deallocate|digits|dot_product|eor|eoshift|function|iachar)\b"
|
|
color constant "(?i)\b(iand|ibclr|ibits|ibset|ichar|ieor|iolength|ior|ishft|ishftc)\b"
|
|
color constant "(?i)\b(lbound|len|len_trim|matmul|maxexponent|maxloc|maxval|merge)\b"
|
|
color constant "(?i)\b(minexponent|minloc|minval|mvbits|namelist|nearest|nullify)\b"
|
|
color constant "(?i)\b(open|pad|present|print|product|pure|quote|radix)\b"
|
|
color constant "(?i)\b(random_number|random_seed|range|read|readwrite|replace)\b"
|
|
color constant "(?i)\b(reshape|rewind|save|scan|sequence|shape|sign|size|spacing)\b"
|
|
color constant "(?i)\b(spread|sum|system_clock|target|transfer|transpose|trim)\b"
|
|
color constant "(?i)\b(ubound|unpack|verify|write|tiny|type|use|yes)\b"
|
|
|
|
color statement "(?i)\b(.and.|case|do|else|else?if|else?where|end|end?do|end?if)\b"
|
|
color statement "(?i)\b(end?select|.eqv.|forall|if|lge|lgt|lle|llt|.neqv.|.not.)\b"
|
|
color statement "(?i)\b(.or.|repeat|select case|then|where|while)\b"
|
|
|
|
color special "(?i)\b(continue|cycle|exit|go?to|result|return)\b"
|
|
|
|
#Operator Color
|
|
color symbol.operator "[.:;,+*|=!\%]" "\b" "\b" "/" "-" "&"
|
|
|
|
#Parenthetical Color
|
|
color symbol.bracket "[(){}]" "\[" "\]"
|
|
|
|
# Add preprocessor commands.
|
|
color preproc "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)"
|
|
|
|
## String highlighting.
|
|
color constant.string "\b[^= ]*\b" ""(\\.|[^"])*""
|
|
color constant.string "\b[^= ]*\b" "'(\\.|[^"])*'"
|
|
|
|
## Comment highlighting
|
|
color comment "!.*$" "(^[Cc]| [Cc]) .*$"
|
|
|