Skip to content

Commit 9239dfa

Browse files
authored
Add defmacro to list of definition context forms (#329)
Closes #327.
1 parent 69fb819 commit 9239dfa

File tree

2 files changed

+7
-35
lines changed

2 files changed

+7
-35
lines changed

default-recommendations/private/definition-context.rkt

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77

88
(require (for-syntax racket/base)
9+
compatibility/defmacro
910
racket/block
1011
racket/match
1112
rebellion/private/static-name
@@ -31,39 +32,9 @@
3132

3233
(define-splicing-syntax-class header-form-allowing-internal-definitions
3334
#:attributes ([original 1])
34-
#:literals (block
35-
let
36-
let*
37-
let-values
38-
let*-values
39-
when
40-
unless
41-
with-handlers
42-
parameterize
43-
for
44-
for/list
35+
#:literals (let
4536
for/vector
46-
for/hash
47-
for/hasheq
48-
for/hasheqv
49-
for/and
50-
for/or
51-
for/sum
52-
for/product
53-
for/first
54-
for/last
55-
for*
56-
for*/list
57-
for*/vector
58-
for*/hash
59-
for*/hasheq
60-
for*/hasheqv
61-
for*/and
62-
for*/or
63-
for*/sum
64-
for*/product
65-
for*/first
66-
for*/last)
37+
for*/vector)
6738

6839
(pattern (~seq id:header-id-with-no-header-forms)
6940
#:with (original ...) #'(id))
@@ -167,8 +138,8 @@
167138

168139

169140
(define-syntax-class header-id-with-two-header-forms
170-
#:literals (for/fold for*/fold)
171-
(pattern (~or for/fold for*/fold)))
141+
#:literals (defmacro for/fold for*/fold)
142+
(pattern (~or defmacro for/fold for*/fold)))
172143

173144

174145
(define-splicing-syntax-class branching-form-allowing-internal-definitions-within-clauses

info.rkt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212

1313

1414
(define deps
15-
(list "base"
15+
(list "compatibility-lib"
16+
"base"
1617
"br-parser-tools-lib"
1718
"brag-lib"
1819
"fancy-app"

0 commit comments

Comments
 (0)