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 | 38ae8922580cc01312caec508bcbd30a9a05c188 (patch) | |
tree | 4eeb1116544f0eaabebc0c04f50383782930e994 | |
parent | 64a6feb403a93213e4065aff09beed4f31c67354 (diff) | |
download | txr-38ae8922580cc01312caec508bcbd30a9a05c188.tar.gz txr-38ae8922580cc01312caec508bcbd30a9a05c188.tar.bz2 txr-38ae8922580cc01312caec508bcbd30a9a05c188.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") |