mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-28 22:08:12 +09:00
Add syntax flags and fix a couple highlighting bugs
This commit is contained in:
@@ -58,7 +58,7 @@ color brightmagenta "(\(|\)|\[|\]|\{|\})"
|
||||
color red "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'"
|
||||
|
||||
# Multiline strings
|
||||
color red "(?s)\s*\[\[.*?\]\]"
|
||||
color red (s) "\s*\[\[.*?\]\]"
|
||||
|
||||
# Escapes
|
||||
color red "\\[0-7][0-7][0-7]|\\x[0-9a-fA-F][0-9a-fA-F]|\\[abefnrs]|(\\c|\\C-|\\M-|\\M-\\C-)."
|
||||
@@ -70,4 +70,5 @@ color brightcyan "^#!.*"
|
||||
color green "\-\-.*$"
|
||||
|
||||
# Multiline comments
|
||||
color green "(?s)\s*\-\-\s*\[\[.*?\]\]"
|
||||
color green (s) "\s*\-\-\s*\[\[.*?\]\]"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user