summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-03-27 07:56:50 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-03-27 07:56:50 -0700
commit38ae8922580cc01312caec508bcbd30a9a05c188 (patch)
tree4eeb1116544f0eaabebc0c04f50383782930e994
parent64a6feb403a93213e4065aff09beed4f31c67354 (diff)
downloadtxr-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.txr1
1 files changed, 1 insertions, 0 deletions
diff --git a/genvim.txr b/genvim.txr
index 3c869e3d..1e5a02a6 100644
--- a/genvim.txr
+++ b/genvim.txr
@@ -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")