diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2024-07-21 08:13:29 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2024-07-21 08:13:29 -0700 |
commit | a8ea27fae5dea57c9d5966d06c78ee64decfc8c7 (patch) | |
tree | 3079d5cc43002852da6172fd0ecdd807d7e3b971 | |
parent | 95b20fe588d75f5a2ef19b6104f7673498646012 (diff) | |
download | txr-a8ea27fae5dea57c9d5966d06c78ee64decfc8c7.tar.gz txr-a8ea27fae5dea57c9d5966d06c78ee64decfc8c7.tar.bz2 txr-a8ea27fae5dea57c9d5966d06c78ee64decfc8c7.zip |
vim: #: and : notation in symbols not handled right.
* genvim.txr (tl_ident): Move the pattern which matches the #
and #: symbols above the more general one. Because, remember,
because Vim's syntax match definitions work such that the last
definition which matches wins, even if it's not the longest
match. Not regenerating the txr.vim and tl.vim files; that
will be done at release time.
-rw-r--r-- | genvim.txr | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -159,6 +159,7 @@ syn match txr_qat "@at" nextgroup=@{txr-qelem} contained syn match txr_dot "\." contained syn match txr_ident "[@alnum@glyph]*[@alpha@glyph^][@alnum@glyph^]*" contained syn match txr_braced_ident "\(#\?:\)\?[[@alnum@glyph^/]\+" contained +syn match tl_ident "#\?:"@(if txr-p " contained") syn match tl_ident "\(#\?:\)\?[@alnum@glyph/]\+[@alnum@glyph^/#]*"@(if txr-p " contained") syn match txr_pnum "#[xob][+\-]\?[@alnum,]\+" contains=txr_xnum,txr_bnum,txr_onum@(if txr-p " contained") syn match txr_xnum "#x[+\-]\?@hexsep" containedin=txr_pnum contained @@ -169,7 +170,6 @@ syn match txr_num "[+\-]\?@digsep\?[.]@digsep\([eE][+\-]\?[@dig]\+\)\?"@(if txr- syn match txr_num "[+\-]\?@digsep[.]\?\([eE][+\-]\?[@dig]\+\)"@(if txr-p " contained") syn match txr_badnum "[+\-]\?@digsep\?[.]@digsep\([@{alpha-noe}@glyph^/#]\|[eE][^+\-@dig]\|[eE][+/-]\?$\|[eE][+\-][^0-9]\)"@(if txr-p " contained") syn match txr_badnum "[+\-]\?@digsep[.]\?\([@{alpha-noe}@glyph^/#]\|[eE][^+\-@dig]\|[eE][+/-]\?$\|[eE][+\-][^0-9]\)"@(if txr-p " contained") -syn match tl_ident "#\?:"@(if txr-p " contained") syn match tl_splice "[ \t,]\|,[*]"@(if txr-p " contained") syn match txr_unquote "," contained |