Skip to content

Commit

Permalink
conscript,admin: allow for \r\n to end #lang line
Browse files Browse the repository at this point in the history
Might not fix problem.
  • Loading branch information
MarcKaufmann committed Mar 28, 2024
1 parent 29b47ce commit 3f634a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion congame-core/components/dsl.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@

(define (dsl-require* src id)
(log-dsl-debug "dsl-require: ~a" (~.s #:max-width 1024 src))
(unless (regexp-match? #rx"^#lang conscript *\n" src)
(unless (or (regexp-match? #rx"^#lang conscript *\n" src)
(regexp-match? #rx"^#lang conscript *\r\n" src))
(error 'dsl-require "only #lang conscript is supported"))
(define path #f)
(dynamic-wind
Expand Down

0 comments on commit 3f634a3

Please sign in to comment.