This is the first push to this repo with my dotfiles
[dotfilesold/.git] / .nano / fsharp.nanorc
1 syntax "F#" "\.fs$" "\.fsx$"
2
3 # Type and Module Definitions
4 color brightgreen  "type +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?"
5 color brightgreen  "module +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?"
6 color brightmagenta  "\<(List|Seq|Array|Option|Choice|Map|list|seq|array|option|choice|ref|in|out)\>"
7 color brightgreen    "<+[A-Za-z0-9'^]+ *((:) +[A-Za-z0-9'^.]+)?>"
8 # Attributes
9 color brightmagenta  "[<+[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?>]"
10
11 # Annotation
12 color magenta   "@[A-Za-z]+"
13
14 # Basic Types
15 color brightgreen     "\<(bool|byte|sbyte|int16|uint16|int|uint32|int64|uint64|char|decimal|double|float|float32|single|nativeint|IntPtr|unativeint|UIntPtr|object|string)\>"
16
17 #  Keywords
18 color cyan            "\<(abstract|and|let|as|assert|base|begin|class|default|delegate|do|for|to|in|while|done|downcast|downto|elif|if|then|else|end|exception|extern|false|finally|try|fixed|fun|function|match|global|inherit|inline|interface|internal|lazy|let!|match!|member|module|mutable|namespace|new|not|not struct|null|of|open|or|override|private|public|rec|return|return!|select|static|struct|true|with|type|upcast|use|use!|val|void|when|yield|yield!)\>"
19
20 color red "[-+/*=<>?:!~%&|]"
21 color blue   "\<([0-9._]+|0x[A-Fa-f0-9_]+|0b[0-1_]+)[FL]?\>"
22 color magenta   "\\([btnfr]|'|\"|\\)"
23 color magenta   "\\u[A-Fa-f0-9]{4}"
24 # String
25 color yellow ""(\\.|[^"])*""
26
27 # Comments
28 color brightblack "(^|[[:space:]])//.*"
29 color brightblack start="/\*" end="\*/"
30 color brightblack start="\(\*" end="\*\)"
31 color brightwhite,cyan "TODO:?"
32
33 color ,green "[[:space:]]+$"
34 color ,red "    + +| +  +"
35
36 color red "#if .+"
37 color red "#endif"
38
39 color white start="``" end="``"