mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-11 01:20:23 +09:00
* Adds new syntax groups and docs * Large refactor of syntax highlighting files * Changed keybindings for changing tabs. * Improved the documentation. * Added F3 for find to default bindings. * Massive overhaul of the syntax files * Phase 1 color-scheme updates. * The new colorschemes. * Colorscheme and syntax updates. * Tiny fix to the cmc theme. * Another phase of colorschemes and testing gitconfig. * Fixed haskell error * Fortran fix * Delete test.txt Heh, sorry about forgetting to do this again.
45 lines
938 B
Plaintext
45 lines
938 B
Plaintext
syntax "markdown" "\.(md|mkd|mkdn|markdown)$"
|
|
|
|
# Tables (Github extension)
|
|
color preproc ".*[ :]\|[ :].*"
|
|
|
|
# quotes
|
|
color constant.string "^>.*"
|
|
|
|
# Emphasis
|
|
color type "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)"
|
|
|
|
# Strong emphasis
|
|
color type.keyword "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)"
|
|
|
|
# strike-through
|
|
color type "(^|[[:space:]])~~[^ ][^~]*~~"
|
|
|
|
# horizontal rules
|
|
color symbol "^(---+|\+---+|===+|\+===+|___+|\*\*\*+|\+\*\*\*+)\s*$"
|
|
|
|
# headlines
|
|
color statement "^#{1,6}.*"
|
|
|
|
# lists
|
|
color identifier "^[[:space:]]*[\*+-] |^[[:space:]]*[0-9]+\. "
|
|
|
|
# misc
|
|
color preproc "\b([CcRr]|[Tt][Mm])\b" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])"
|
|
|
|
# links
|
|
color constant "\[[^]]+\]"
|
|
color constant "\[([^][]|\[[^]]*\])*\]\([^)]+\)"
|
|
|
|
# images
|
|
color underlined "!\[[^][]*\](\([^)]+\)|\[[^]]+\])"
|
|
|
|
# urls
|
|
color underlined.url "https?://[^ )>]+"
|
|
|
|
# code
|
|
color special "`.*?`|^ {4}[^-+*].*"
|
|
# code blocks
|
|
color symbol "^```$"
|
|
|