4 Default Lexer
(require syntax-color/default-lexer) | |
package: syntax-color-lib |
procedure
(default-lexer in) →
(or/c string? eof-object?) symbol? (or/c symbol? #f) (or/c number? #f) (or/c number? #f) in : input-port?
A lexer that only identifies (, ), [, ], {, and } built specifically for color:text<%>.
default-lexer returns 5 values:
Either a string containing the matching text or the eof object. Block specials currently return an empty string. This may change in the future to other string or non-string data.
A symbol in '(comment white-space no-color eof).
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).