Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add defmacro to list of definition context forms #329

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 5 additions & 34 deletions default-recommendations/private/definition-context.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@


(require (for-syntax racket/base)
compatibility/defmacro
racket/block
racket/match
rebellion/private/static-name
Expand All @@ -31,39 +32,9 @@

(define-splicing-syntax-class header-form-allowing-internal-definitions
#:attributes ([original 1])
#:literals (block
let
let*
let-values
let*-values
when
unless
with-handlers
parameterize
for
for/list
#:literals (let
for/vector
for/hash
for/hasheq
for/hasheqv
for/and
for/or
for/sum
for/product
for/first
for/last
for*
for*/list
for*/vector
for*/hash
for*/hasheq
for*/hasheqv
for*/and
for*/or
for*/sum
for*/product
for*/first
for*/last)
for*/vector)

(pattern (~seq id:header-id-with-no-header-forms)
#:with (original ...) #'(id))
Expand Down Expand Up @@ -167,8 +138,8 @@


(define-syntax-class header-id-with-two-header-forms
#:literals (for/fold for*/fold)
(pattern (~or for/fold for*/fold)))
#:literals (defmacro for/fold for*/fold)
(pattern (~or defmacro for/fold for*/fold)))


(define-splicing-syntax-class branching-form-allowing-internal-definitions-within-clauses
Expand Down
3 changes: 2 additions & 1 deletion info.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@


(define deps
(list "base"
(list "compatibility-lib"
"base"
"br-parser-tools-lib"
"brag-lib"
"fancy-app"
Expand Down
Loading