mirror of
https://github.com/scopatz/nanorc
synced 2024-11-21 16:15:40 +01:00
bba53c3940
Duplicate syntax definition names may cause problems. Since nano comes with predefined all-lowercase syntax definitions, we use uppercase letters everywhere to reduce the risk of future conflicts
28 lines
470 B
Plaintext
28 lines
470 B
Plaintext
## For reST
|
|
syntax "RST" "\.rest$" "\.rst$"
|
|
# italics
|
|
#color magenta "\*[^*]\*"
|
|
# bold
|
|
color red "\*\*[^*]+\*\*"
|
|
# code block
|
|
color brightred "::"
|
|
# link reference
|
|
color blue "`[^`]+`_{1,2}"
|
|
# code
|
|
color yellow "``[^`]+``"
|
|
# directives or comments
|
|
color cyan "^\.\. .*$"
|
|
# anon link targets
|
|
color cyan "^__ .*$"
|
|
# h1
|
|
color yellow "^###+$"
|
|
color yellow "^\*\*\*+$"
|
|
# h2
|
|
color magenta "^===+$"
|
|
# h3
|
|
color red "^---+$"
|
|
# h4
|
|
color green "^\^\^\^+$"
|
|
# h5
|
|
color blue "^"""+$"
|