Skip to content

Commit 0280640

Browse files
committed
docs: linkify some contract combinators
1 parent ed90fe2 commit 0280640

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

syntax-color-doc/syntax-color/color-textoid.scrbl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#lang scribble/manual
22
@(require (for-label racket/base
3+
racket/contract
34
syntax-color/color-textoid
45
racket/gui/base
56
framework))
@@ -101,7 +102,8 @@ Like @xmethod[color:text<%> get-token-range].}
101102
Like @xmethod[color:text<%> get-backward-navigation-limit].}
102103

103104
@defmethod[(get-regions)
104-
(listof (list/c exact-nonnegative-integer? (or/c exact-nonnegative-integer? 'end)))]{
105+
(listof (list/c exact-nonnegative-integer?
106+
(or/c exact-nonnegative-integer? 'end)))]{
105107

106108
Like @xmethod[color:text<%> get-regions].}
107109

syntax-color-doc/syntax-color/racket.scrbl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#lang scribble/manual
22
@(require (for-label racket/base
33
racket/class
4+
racket/contract
45
syntax-color/color-textoid
56
syntax-color/racket-indentation
67
syntax-color/racket-navigation
@@ -14,12 +15,12 @@ parenthesis information produced by a coloring lexer. They can work
1415
with any object that implements @racket[color-textoid<%>], which
1516
is extended by @racket[color:text<%>].
1617

17-
@history[#:added "1.3"]
18-
1918
@section{S-Expression Navigation}
2019

2120
@defmodule[syntax-color/racket-navigation]
2221

22+
@history[#:added "1.3"]
23+
2324
@deftogether[(
2425
@defproc[(racket-forward-sexp [text (is-a?/c color-textoid<%>)]
2526
[pos exact-nonnegative-integer?])
@@ -55,6 +56,8 @@ result is @racket[#t] when the token corresponds to @litchar["'"],
5556

5657
@defmodule[syntax-color/racket-indentation]
5758

59+
@history[#:added "1.3"]
60+
5861
@defproc[(racket-amount-to-indent [text (is-a?/c color-textoid<%>)]
5962
[pos exact-nonnegative-integer?]
6063
[#:head-sexp-type head-sexp-type

syntax-color-doc/syntax-color/syntax-color.scrbl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ total length of preceding nodes.
417417

418418
FIXME: many methods are not yet documented.
419419

420-
@defconstructor[([len (or/c exact-nonnegative-integer? fasle/c)]
420+
@defconstructor[([len (or/c exact-nonnegative-integer? #f)]
421421
[data any/c])]{
422422
Creates a token tree with a single element.
423423
}

0 commit comments

Comments
 (0)