Fix display of code in popup.
This commit is contained in:
parent
e736653413
commit
4e0b1bfa3c
|
@ -1,14 +1,16 @@
|
||||||
#lang racket/base
|
#lang racket/base
|
||||||
|
|
||||||
(require racket/string racket/pretty racket/class racket/gui/base
|
(require racket/string unstable/pretty racket/class racket/gui/base
|
||||||
unstable/sequence)
|
unstable/sequence)
|
||||||
|
|
||||||
(provide format-message make-color-table)
|
(provide format-message make-color-table)
|
||||||
|
|
||||||
(define (format-message stxs+msgs)
|
(define (format-message stxs+msgs)
|
||||||
(string-join (for/list ([(stx msg) (in-pairs stxs+msgs)])
|
(string-join (for/list ([(stx msg) (in-pairs stxs+msgs)])
|
||||||
(format "~a\n~a"
|
(format "~a:~a: ~a~a"
|
||||||
(pretty-format (syntax->datum stx))
|
(syntax-line stx)
|
||||||
|
(syntax-column stx)
|
||||||
|
(pretty-format/write (syntax->datum stx))
|
||||||
msg))
|
msg))
|
||||||
"\n\n"))
|
"\n\n"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user