1
1
nano/syntax/markdown.nanorc
Ryan Westlund 11ae201d71 syntax: markdown: add author and license line
Signed-off-by: Ryan Westlund <rlwestlund@gmail.com>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
2020-09-15 19:11:35 +02:00

41 строка
947 B
Plaintext

## Syntax highlighting for Markdown files.
## Original authors: Ryan Westlund and Benno Schulenberg
## License: GPL version 3 or newer
syntax markdown "\.md$"
comment "<!--|-->"
# Quoted:
color magenta "^[ ]*>.*"
# List-item markers:
color brightmagenta "^( | )* ? ? ?(\*|\+|-|[1-9]+\.)( +| )"
# Emphasis and strong:
color green "\*[^* ][^*]*\*|_[^_ ][^_]*_"
color brightgreen "\*\*[^*]+\*\*|__[^_]+__"
# Strikethrough:
color red "~~[^~]+~~"
# Line breaks:
color ,blue " $"
# URLs and links:
color brightblue "\[[^]]+\]\([^)]+\)"
color brightmagenta "!?\[[^]]+\]"
# Code snippet, indented code, and fenced code:
color brightcyan "`[^`]+`"
color brightcyan "^( | )+ *([^*+0-9> -]|[*+-]\S|[0-9][^.]).*"
color brightcyan start="```" end="```$"
# Headings and the underlining of headings:
color brightyellow "^#.*"
color brightyellow "^(=+|-+)$"
# HTML tags and comments:
color cyan "<[^>]+>"
color cyan start="<!--" end="-->"