diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-07-28 06:57:30 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-07-28 06:57:30 -0700 |
commit | 48abc4a1143de0924470563c55d3bb9d482103fe (patch) | |
tree | 384e763f1573372f6f4efdcd4a5a5cc8127a8aca | |
parent | 38628810e40743810b9b6d6348daa11274a5c5e9 (diff) | |
download | txr-48abc4a1143de0924470563c55d3bb9d482103fe.tar.gz txr-48abc4a1143de0924470563c55d3bb9d482103fe.tar.bz2 txr-48abc4a1143de0924470563c55d3bb9d482103fe.zip |
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 #.
-rw-r--r-- | genvim.txr | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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") |