|
271 | 271 | (super tabify-all))) |
272 | 272 |
|
273 | 273 | (define/override (reset-console) |
274 | | - (define ints-surrogate (get-surrogate)) |
275 | | - (when ints-surrogate |
276 | | - ;; when ints-surrogate is #f, then we |
277 | | - ;; should in a language other than the module |
278 | | - ;; language so we can safely skip this |
279 | | - (define the-irl (send (get-definitions-text) get-irl)) |
280 | | - (send ints-surrogate set-get-token |
281 | | - (call-read-language the-irl 'color-lexer (waive-option module-lexer))) |
282 | | - (send ints-surrogate set-matches |
283 | | - (call-read-language the-irl |
284 | | - 'drracket:paren-matches |
285 | | - racket:default-paren-matches)) |
286 | | - (set-surrogate ints-surrogate)) |
| 274 | + (when (send (get-definitions-text) get-in-module-language?) |
| 275 | + (define ints-surrogate (get-surrogate)) |
| 276 | + (when ints-surrogate |
| 277 | + ;; when ints-surrogate is #f, then we |
| 278 | + ;; should in a language other than the module |
| 279 | + ;; language so we can safely skip this |
| 280 | + (define the-irl (send (get-definitions-text) get-irl)) |
| 281 | + (send ints-surrogate set-get-token |
| 282 | + (call-read-language the-irl 'color-lexer (waive-option module-lexer))) |
| 283 | + (send ints-surrogate set-matches |
| 284 | + (call-read-language the-irl |
| 285 | + 'drracket:paren-matches |
| 286 | + racket:default-paren-matches)) |
| 287 | + (set-surrogate ints-surrogate))) |
287 | 288 | (super reset-console)) |
288 | 289 |
|
289 | 290 | (super-new))) |
|
0 commit comments