Skip to content

Commit

Permalink
Allow running Resyntax on #lang racket files. (#240)
Browse files Browse the repository at this point in the history
Fixes #229.
  • Loading branch information
jackfirth authored Aug 23, 2024
1 parent d825b89 commit bd15559
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
Resyntax is a refactoring tool for Racket. The tool can be guided by @deftech{refactoring rules},
which are macro-like functions defined in terms of @racket[syntax-parse] that specify how to search
for and refactor different coding patterns. Resyntax comes with a standard set of refactoring rules
that improve code written in @racket[@#,hash-lang[] @#,racketmodname[racket/base]]. For example,
consider the following program:
that improve code written in @racket[@#,hash-lang[] @#,racketmodname[racket]] or
@racket[@#,hash-lang[] @#,racketmodname[racket/base]]. For example, consider the following program:

@(racketmod
#:file "my-program.rkt"
Expand Down
2 changes: 1 addition & 1 deletion private/file-group.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@
(define path (file-portion-path portion))
(guard (path-has-extension? path #".rkt") #:else #false)
(define content (file->string path))
(string-prefix? content "#lang racket/base"))
(string-prefix? content "#lang racket"))

0 comments on commit bd15559

Please sign in to comment.