use the Scheme lexer when then module path is bad (or a planet path)
svn: r15610
This commit is contained in:
parent
12ab7c3aff
commit
8b0b01939a
|
@ -43,14 +43,7 @@
|
|||
[(eq? 'fail get-info)
|
||||
(let*-values ([(end-line end-col end-pos) (port-next-location in)])
|
||||
(values #f 'error #f start-pos end-pos
|
||||
(lambda (in)
|
||||
(let-values ([(line col pos) (port-next-location in)])
|
||||
(if (eof-object? (peek-byte in))
|
||||
(values #f 'eof #f pos pos)
|
||||
(begin
|
||||
(copy-port in (open-output-nowhere))
|
||||
(let-values ([(end-line end-col end-pos) (port-next-location in)])
|
||||
(values #f 'other #f pos end-pos))))))))]
|
||||
scheme-lexer))]
|
||||
[else
|
||||
;; Start over using the Scheme lexer
|
||||
(module-lexer in scheme-lexer)])))]
|
||||
|
|
Loading…
Reference in New Issue
Block a user