syntax/lua: highlight '\\' escape (and similar) properly
commita4fbaf95ffc73e9ce93fca65aa8e223bef2da799
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 16 Nov 2011 05:44:33 +0000 (16 08:44 +0300)
committerSergei Trofimovich <slyfox@gentoo.org>
Wed, 16 Nov 2011 05:44:33 +0000 (16 08:44 +0300)
tree255d0ffbc8c76f809861fba93ea4a30b626ed323
parent2a1925506976130a2521e209bd32cfae5dbace4c
syntax/lua: highlight '\\' escape (and similar) properly

The following example breaks highlighting to the end of file:
    local a = "\\"
    local b = 1
    ...

Added escape handling for simplest cases both for
single-quoted and double-quoted literals:
    '\\', '\n' (and similar), '\d', '\dd', '\ddd'

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
misc/syntax/lua.syntax