Skip to content

docs: linkify some contract combinators #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion syntax-color-doc/syntax-color/color-textoid.scrbl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#lang scribble/manual
@(require (for-label racket/base
racket/contract
syntax-color/color-textoid
racket/gui/base
framework))
Expand Down Expand Up @@ -101,7 +102,8 @@ Like @xmethod[color:text<%> get-token-range].}
Like @xmethod[color:text<%> get-backward-navigation-limit].}

@defmethod[(get-regions)
(listof (list/c exact-nonnegative-integer? (or/c exact-nonnegative-integer? 'end)))]{
(listof (list/c exact-nonnegative-integer?
(or/c exact-nonnegative-integer? 'end)))]{

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

Expand Down
7 changes: 5 additions & 2 deletions syntax-color-doc/syntax-color/racket.scrbl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#lang scribble/manual
@(require (for-label racket/base
racket/class
racket/contract
syntax-color/color-textoid
syntax-color/racket-indentation
syntax-color/racket-navigation
Expand All @@ -14,12 +15,12 @@ parenthesis information produced by a coloring lexer. They can work
with any object that implements @racket[color-textoid<%>], which
is extended by @racket[color:text<%>].

@history[#:added "1.3"]

@section{S-Expression Navigation}

@defmodule[syntax-color/racket-navigation]

@history[#:added "1.3"]

@deftogether[(
@defproc[(racket-forward-sexp [text (is-a?/c color-textoid<%>)]
[pos exact-nonnegative-integer?])
Expand Down Expand Up @@ -55,6 +56,8 @@ result is @racket[#t] when the token corresponds to @litchar["'"],

@defmodule[syntax-color/racket-indentation]

@history[#:added "1.3"]

@defproc[(racket-amount-to-indent [text (is-a?/c color-textoid<%>)]
[pos exact-nonnegative-integer?]
[#:head-sexp-type head-sexp-type
Expand Down
2 changes: 1 addition & 1 deletion syntax-color-doc/syntax-color/syntax-color.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ total length of preceding nodes.

FIXME: many methods are not yet documented.

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