Skip to content

doc,framework: add note about 'semantic-type-guess #351

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
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
10 changes: 10 additions & 0 deletions gui-doc/scribblings/framework/color.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@
@racket['no-color] can be used to indicate that although
the token is not whitespace, it should not be colored.

In addition to @racket['type], a @racket[get-token] function
may provide an optional @racket['semantic-type-guess] key
for tokens that look like they might fit into more specific
categories (for example, symbols in a language that look
like keywords), but that it can't prove belong to those
categories (for example, because it can't tell if the symbol
shadows a keyword). Tools may allow users to opt into
preferring the @racket['semantic-type-guess], if present,
over the @racket['type] when coloring a token.

These and other keys in @racket[_attribs] can be used by
tools that call @method[color:text<%>
classify-position*].}
Expand Down
Loading