From 3d23e04870da2f15369bf8c9265023ae581a80c9 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 28 Jul 2017 06:59:58 -0700 Subject: genvim: flag invalid # syntax. * genvim.txr (txr_error): New match in this category for # followed by something other than H, S or R. Some characters other than these are valid after #, but are covered by explicit matches that occur later. --- genvim.txr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/genvim.txr b/genvim.txr index 2fda7d9e..7752ee67 100644 --- a/genvim.txr +++ b/genvim.txr @@ -109,6 +109,8 @@ syn match txr_numesc "\\x[@hex]\+;\?" contained syn match txr_numesc "\\[@oct]\+;\?" contained syn match txr_regesc "\\[@chesc/sSdDwW()\|.*?+~&%\[\]\-]" contained +syn match txr_error "#[^HSR]"@(if txr-p " contained") + syn match txr_chr "#\\x[@hex]\+"@(if txr-p " contained") syn match txr_chr "#\\o[@oct]\+"@(if txr-p " contained") syn match txr_chr "#\\[^ \t\n@alnum]"@(if txr-p " contained") -- cgit v1.2.3