fix `syntax/loc' to preserve properties
This commit is contained in:
parent
2d87d48ebd
commit
9143c1c7df
|
@ -33,7 +33,7 @@
|
|||
(datum->syntax stx
|
||||
(syntax-e stx)
|
||||
loc
|
||||
#f)
|
||||
stx)
|
||||
stx))
|
||||
|
||||
;; Like syntax, but also takes a syntax object
|
||||
|
|
|
@ -1433,6 +1433,11 @@
|
|||
p))
|
||||
|
||||
|
||||
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Check that `syntax/loc' preserves the 'parent-shape property
|
||||
|
||||
(test #\[ syntax-property (syntax/loc #'a [b c]) 'paren-shape)
|
||||
|
||||
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(report-errs)
|
||||
|
|
Loading…
Reference in New Issue
Block a user