Add syntax flags and fix a couple highlighting bugs

This commit is contained in:
Zachary Yedidia
2016-03-21 14:48:17 -04:00
parent 96254717c6
commit b8f6850c58
50 changed files with 204 additions and 185 deletions

View File

@@ -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*\[\[.*?\]\]"