6 Scribble Lexer
(require syntax-color/scribble-lexer) | |
package: syntax-color-lib |
procedure
(scribble-lexer in offset mode)
→
(or/c string? eof-object?)
(or/c symbol? (and/c (hash/c symbol? any/c) immutable?)) (or/c symbol? #f) (or/c number? #f) (or/c number? #f) exact-nonnegative-integer? any/c in : input-port? offset : exact-nonnegative-integer? mode : any/c
Like racket-lexer*, but for Racket extended with Scribble’s
@ notation (see @ Syntax).
Changed in version 1.2 of package syntax-color-lib: Changed to be like racket-lexer* instead of racket-lexer.
procedure
(scribble-inside-lexer in offset mode)
→
(or/c string? eof-object?)
(or/c symbol? (and/c (hash/c symbol? any/c) immutable?)) (or/c symbol? #f) (or/c number? #f) (or/c number? #f) exact-nonnegative-integer? any/c in : input-port? offset : exact-nonnegative-integer? mode : any/c
Like scribble-lexer, but starting in “text” mode instead of
Racket mode.
Changed in version 1.2 of package syntax-color-lib: Changed to be like racket-lexer* instead of racket-lexer.
procedure
(make-scribble-lexer [#:command-char at]) → lexer/c
at : (and/c char? (not/c (or/c #\] #\[))) = #\@
Added in version 1.1 of package syntax-color-lib.
Changed in version 1.2: Changed like scribble-lexer.
procedure
(make-scribble-inside-lexer [#:command-char at]) → lexer/c
at : (and/c char? (not/c (or/c #\] #\[))) = #\@
Added in version 1.1 of package syntax-color-lib.
Changed in version 1.2: Changed like scribble-lexer.