diff --git a/collects/parser-tools/lex.ss b/collects/parser-tools/lex.ss index 5e9fab3..ff3fd86 100644 --- a/collects/parser-tools/lex.ss +++ b/collects/parser-tools/lex.ss @@ -167,9 +167,9 @@ ((eq? 'special first-char) (let* ((comment? #f) (error? #f) - (spec (with-handlers ((exn:special-comment? + (spec (with-handlers ((special-comment? (lambda (x) (set! comment? #t))) - (not-break-exn? + (exn:fail? (lambda (ex) (set! error? #t) ex))) (read-char-or-special ip)))) (cond