Merge pull request #85 from tapir/master

Fix Lua multiline comment and string
This commit is contained in:
Anthony Scopatz 2016-02-16 14:42:22 -05:00
commit ea84e69ec7

View File

@ -52,16 +52,15 @@ color red "\<([0-9]+)\>"
# Symbols # Symbols
color brightmagenta "(\(|\)|\[|\]|\{|\})" color brightmagenta "(\(|\)|\[|\]|\{|\})"
# Strings
#color green "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'"
# Strings # Strings
color red "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'" color red "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'"
# Multiline strings
color red start="\s*\[\[" end="\]\]"
# Escapes # Escapes
color red "\\[0-7][0-7][0-7]|\\x[0-9a-fA-F][0-9a-fA-F]|\\[abefnrs]|(\\c|\\C-|\\M-|\\M-\\C-)." color red "\\[0-7][0-7][0-7]|\\x[0-9a-fA-F][0-9a-fA-F]|\\[abefnrs]|(\\c|\\C-|\\M-|\\M-\\C-)."
# Shebang # Shebang
color brightcyan "^#!.*" color brightcyan "^#!.*"
@ -69,4 +68,4 @@ color brightcyan "^#!.*"
color green "\-\-.*$" color green "\-\-.*$"
# Multiline comments # Multiline comments
color green start="\-\-\[" end="]" color green start="\s*\-\-\s*\[\[" end="\]\]"