1
0
forked from alex-eg/sex

keep the threading macro out of the writer's arrow comment

This commit is contained in:
2026-10-19 15:33:51 +03:00
parent 063770d3bc
commit 958978efd3

View File

@@ -191,8 +191,7 @@ forms, and what remains."
;; is the fmt-c directive for the `.' operator (see sex-fmt-c).
(('dot-access . rest) (cons '%. (map walk-expr rest)))
;; `%->' is the C arrow. Nothing writes it: it is what a member
;; path lowers to where the thing it reads from is a pointer, the
;; name `->' itself being the threading macro
;; path lowers to where the thing it reads from is a pointer
(('%-> . rest) (cons '%-> (map walk-expr rest)))
(('var . _) (walk-var form))
;; An expression has no room for a statement, so a comment in a