Skip to content

Commit 7b0c37a

Browse files
committed
guard against regexp special characters
1 parent 5d5594c commit 7b0c37a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax-color-lib/syntax-color/scribble-lexer.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
type]))
3838

3939
(define (make-rx:opener #:command-char [at #\@])
40-
(regexp (format "^[|]([^~aa-zA-Z0-9 \t\r\n\f\\\177-\377{]*){" (regexp-quote (string at)))))
40+
(regexp (format "^[|]([^~aa-zA-Z0-9 \t\r\n\f\\\177-\377{]*){" at)))
4141

4242
(define rxes (make-weak-hash))
4343
(define rx-keys (make-weak-hasheq))

0 commit comments

Comments
 (0)