From b8f1cb3ce74b1738de5ecbaeeaea60d0bcd0a239 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 28 Jul 2017 06:57:30 -0700 Subject: genvim: fix buggy tl_ident containing #. * genvim.txr (tl_ident): Fix the incorrect match which allows things beginning with # to be categorized as identifier tokens. The new match reflects the true original intent: the match must not begin with #, but may contain #. --- genvim.txr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genvim.txr b/genvim.txr index 9781e651..2fda7d9e 100644 --- a/genvim.txr +++ b/genvim.txr @@ -119,7 +119,7 @@ syn match txr_dot "\." contained syn match txr_ident "[@alnum@glyph]*[@alpha@glyph^][@alnum@glyph^]*" contained syn match tl_ident "[:@@][@alnum@glyph^/]\+"@(if txr-p " contained") syn match txr_braced_ident "[:][@alnum@glyph^/]\+" contained -syn match tl_ident "[@alnum@glyph/]*[@alpha@glyph^/#][@alnum@glyph^/#]*"@(if txr-p " contained") +syn match tl_ident "[@alnum@glyph/]\+[@alnum@glyph^/#]*"@(if txr-p " contained") syn match txr_num "#x[+\-]\?[@hex]\+"@(if txr-p " contained") syn match txr_num "#o[+\-]\?[@oct]\+"@(if txr-p " contained") syn match txr_num "#b[+\-]\?[01]\+"@(if txr-p " contained") -- cgit v1.2.3