6 Scribble Lexer

▼ |  | Syntax Color: Utilities

1 | Parenthesis Matching
2 | Lexer Contract and The Don’t-Stop Structure Type
3 | Racket Lexer
4 | Default Lexer
5 | Module Lexer
6 | Scribble Lexer
7 | Splay Tree for Tokenization
8 | Interface for Clients of Syntax Color Output
9 | Racket S-Expression Indentation and Navigation

On this page:

scribble-lexer
scribble-inside-lexer
make-scribble-lexer
make-scribble-inside-lexer

top contents ← prev up next →

### 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 #\] #\[))) = #\@

Produces a lexer like scribble-lexer, but using at in place of @.

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 #\] #\[))) = #\@

Produces a lexer function like scribble-inside-lexer, but using at in place of @.

Added in version 1.1 of package syntax-color-lib.
Changed in version 1.2: Changed like scribble-lexer.

top contents ← prev up next →