mirror of
https://github.com/scopatz/nanorc
synced 2024-11-22 08:35:39 +01:00
update rules
This commit is contained in:
parent
390e14b023
commit
221f368c2c
@ -3,7 +3,8 @@ syntax "F#" "\.fs$" "\.fsx$"
|
||||
# Type and Module Definitions
|
||||
color brightgreen "type +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?"
|
||||
color brightgreen "module +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?"
|
||||
color brightmagenta "\<(List|Seq|Array|list|seq|array|ref|in|out)\>"
|
||||
color brightmagenta "\<(List|Seq|Array|Option|Choice|Map|list|seq|array|option|choice|ref|in|out)\>"
|
||||
color brightgreen "<+[A-Za-z0-9'^]+ *((:) +[A-Za-z0-9'^.]+)?>"
|
||||
color brightmagenta "[<+[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?>]" # Attributes
|
||||
|
||||
# Annotation
|
||||
@ -17,7 +18,7 @@ color cyan "\<(abstract|and|let|as|assert|base|begin|class|default|deleg
|
||||
|
||||
color red "[-+/*=<>?:!~%&|]"
|
||||
color blue "\<([0-9._]+|0x[A-Fa-f0-9_]+|0b[0-1_]+)[FL]?\>"
|
||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
color yellow ""(\\.|[^"])*"" # String
|
||||
color magenta "\\([btnfr]|'|\"|\\)"
|
||||
color magenta "\\u[A-Fa-f0-9]{4}"
|
||||
|
||||
@ -30,4 +31,7 @@ color brightwhite,cyan "TODO:?"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " + +| + +"
|
||||
|
||||
color red "#if .+"
|
||||
color red "#endif"
|
||||
|
||||
color white start="``" end="``"
|
Loading…
Reference in New Issue
Block a user