Fix Lua multiline comment and string

This commit is contained in:
Coşku Baş 2016-02-16 21:41:14 +02:00
parent ea8c78f44f
commit ae26836577
1 changed files with 6 additions and 7 deletions

View File

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