This is the first push to this repo with my dotfiles
[dotfilesold/.git] / .nano / csharp.nanorc
1 syntax "C#" "\.cs$"
2
3 # Class
4 color brightmagenta  "class +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?"
5
6 # Annotation
7 color magenta   "@[A-Za-z]+"
8
9 color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]"
10 color green     "\<(bool|byte|sbyte|char|decimal|double|float|IntPtr|int|uint|long|ulong|object|short|ushort|string|base|this|var|void)\>"
11 color cyan  "\<(alias|as|case|catch|checked|default|do|dynamic|else|finally|fixed|for|foreach|goto|if|is|lock|new|null|return|switch|throw|try|unchecked|while)\>"
12 color cyan  "\<(abstract|async|class|const|delegate|enum|event|explicit|extern|get|implicit|in|internal|interface|namespace|operator|out|override|params|partial|private|protected|public|readonly|ref|sealed|set|sizeof|stackalloc|static|struct|typeof|unsafe|using|value|virtual|volatile|yield)\>"
13 # LINQ-only keywords (ones that cannot be used outside of a LINQ query - lots others can)
14 color cyan  "\<(from|where|select|group|info|orderby|join|let|in|on|equals|by|ascending|descending)\>"
15 color brightred     "\<(break|continue)\>"
16 color brightcyan "\<(true|false)\>"
17 color red "[-+/*=<>?:!~%&|]"
18 color blue   "\<([0-9._]+|0x[A-Fa-f0-9_]+|0b[0-1_]+)[FL]?\>"
19 color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
20 color magenta   "\\([btnfr]|'|\"|\\)"
21 color magenta   "\\u[A-Fa-f0-9]{4}"
22 color brightblack "(^|[[:space:]])//.*"
23 color brightblack start="/\*" end="\*/"
24 color brightwhite,cyan "TODO:?"
25 color ,green "[[:space:]]+$"
26 color ,red "    + +| +  +"