You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
beautiful-racket/beautiful-racket/br/demo/jsonic-2/main.rkt

15 lines
433 B
Racket

#lang br/quicklang
(module reader br
(require "reader.rkt" "colorer.rkt"
"indenter.rkt" "buttons.rkt")
(provide read-syntax get-info)
(define (get-info port mod line col pos)
(define (handle-query key default)
(case key
[(color-lexer) color-jsonic]
[(drracket:indentation) indent-jsonic]
[(drracket:toolbar-buttons) make-jsonic-buttons]
[else default]))
handle-query))