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

@@ -21,16 +21,16 @@ color magenta "[A-Z][a-z]+"
# Strings
color green "\".*\""
color green "(?s)\".*\\$.*?.*\""
color green (s) "\".*\\$.*?.*\""
# NOTE: This isn't accurate but matching "#{0,} for the end of the string is too liberal
color green "(?s)r#+\".*?\"#+"
color green (s) "r#+\".*?\"#+"
# Comments
color blue "//.*"
color blue "(?s)/\*.*?\*/"
color blue (s) "/\*.*?\*/"
# Attributes
color magenta "(?s)#!\[.*?\]"
color magenta (s) "#!\[.*?\]"
# Some common markers
color brightcyan "(XXX|TODO|FIXME|\?\?\?)"