diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-03-27 07:56:50 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-03-27 07:56:50 -0700 |
commit | 98f71f5157bca49ecfe50a20796e889d86bab593 (patch) | |
tree | 4eeb1116544f0eaabebc0c04f50383782930e994 | |
parent | 738567e7b81b3ac7c53fc0a0a33c97a7392904ba (diff) | |
download | txr-98f71f5157bca49ecfe50a20796e889d86bab593.tar.gz txr-98f71f5157bca49ecfe50a20796e889d86bab593.tar.bz2 txr-98f71f5157bca49ecfe50a20796e889d86bab593.zip |
vim: syntax highlighting for ... decimal integers?
* genvim.txr (txr_num): Somehow, in spite of all the complexity
and years of maintenance on this file, it generates syntax
files that fail to recognize decimal integer tokens and color
them like floating-point and other tokens like hex and octal.
We now add (back?) the rule for that.
-rw-r--r-- | genvim.txr | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -164,6 +164,7 @@ syn match txr_pnum "#[xob][+\-]\?[@alnum,]\+" contains=txr_xnum,txr_bnum,txr_onu syn match txr_xnum "#x[+\-]\?@hexsep" containedin=txr_pnum contained syn match txr_onum "#o[+\-]\?@octsep" containedin=txr_pnum contained syn match txr_bnum "#b[+\-]\?@binsep" containedin=txr_pnum contained +syn match txr_num "[+\-]\?@digsep"@(if txr-p " contained") syn match txr_num "[+\-]\?@digsep\?[.]@digsep\([eE][+\-]\?[@dig]\+\)\?"@(if txr-p " contained") 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") |