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 | b8f1cb3ce74b1738de5ecbaeeaea60d0bcd0a239 (patch) | |
tree | 384e763f1573372f6f4efdcd4a5a5cc8127a8aca /genvim.txr | |
parent | 50b0892bb62707e2c69e7e9dd10b6fe9980a5491 (diff) | |
download | txr-b8f1cb3ce74b1738de5ecbaeeaea60d0bcd0a239.tar.gz txr-b8f1cb3ce74b1738de5ecbaeeaea60d0bcd0a239.tar.bz2 txr-b8f1cb3ce74b1738de5ecbaeeaea60d0bcd0a239.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 #.
Diffstat (limited to 'genvim.txr')
-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") |