summaryrefslogtreecommitdiffstats
path: root/txrtags.tl
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-10-27 07:36:38 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-10-27 07:36:38 -0700
commite6eb95aaecce20c3a8883022de6e300ac15cdd4f (patch)
tree9ccfe9f04e0f40eaeba130389476f6e57e95419a /txrtags.tl
parent71d97e5ba88f57a2c9dd6d07365f41a3d786ab9f (diff)
downloadtxr-e6eb95aaecce20c3a8883022de6e300ac15cdd4f.tar.gz
txr-e6eb95aaecce20c3a8883022de6e300ac15cdd4f.tar.bz2
txr-e6eb95aaecce20c3a8883022de6e300ac15cdd4f.zip
txrtags: maintain due to new defstruct syntax.
* txrtags.tl (process-form): Handle :postfini in the same way as :fini. In fallback case, reject clauses headed by a keyword symbol.
Diffstat (limited to 'txrtags.tl')
-rwxr-xr-xtxrtags.tl5
1 files changed, 3 insertions, 2 deletions
diff --git a/txrtags.tl b/txrtags.tl
index 042aa993..8e13f120 100755
--- a/txrtags.tl
+++ b/txrtags.tl
@@ -191,10 +191,11 @@
(t :)))
((word (arg) . body)
(caseq word
- ((:init :postinit :fini))
+ ((:init :postinit :fini :postfini))
(t :)))
((name . rest)
- (add (ntag slot-tag name struct-name)))
+ (unless (keywordp name)
+ (add (ntag slot-tag name struct-name))))
(name
(add (ntag slot-tag name struct-name struct-obj))))))))))))