The racket-lexer function returns 5 values:
Either a string containing the matching text or the eof object.
Block comments and specials currently return an empty string.
This may change in the future to other string or non-string data.
A symbol in '(error comment sexp-comment white-space constant string no-color parenthesis hash-colon-keyword symbol eof other).
A symbol in '(|(| |)| |[| |]| |{| |}|) or #f.
A number representing the starting position of the match (or #f if eof).
A number representing the ending position of the match (or #f if eof).
Added in version 1.2 of package syntax-color-lib.
Changed in version 1.7: Added use of current-lexeme->semantic-type-guess.
Like
racket-lexer, but returns an extra value. The last
return value indicates whether the consumed token should count as a
datum, an opening parenthesis (or similar starting token to group
other tokens), a closing parenthesis (or similar), or a prefix (such
as whitespace) on a datum.
Added in version 1.2 of package syntax-color-lib.
Changed in version 1.7: Added use of current-lexeme->semantic-type-guess.
Added in version 1.2 of package syntax-color-lib.
Changed in version 1.7: Added use of current-lexeme->semantic-type-guess.
A parameter to determine when a
'semantic-type-guess attribute should
be added to a token result of type
'symbol by
racket-lexer*
and similar functions. An attribute is added whenever the
proc value
of the parameter returns a symbol (instead of
#f).
Added in version 1.7 of package syntax-color-lib.