package lambda-term

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module LTerm_text_impl.MakeSource

Parameters

Signature

Sourcetype t = (Zed_char.t * LTerm_style.t) array
Sourceval of_string : Zed_string.t -> (Zed_char.t * LTerm_style.t) array
Sourceval aval_width : (Zed_string.all_width, Zed_string.seg_width) Result.result -> int
Sourceval of_utf8 : string -> (Zed_char.t * LTerm_style.t) array
Sourceval uchar_of_hex : int -> Uchar.t
Sourceval of_string_maybe_invalid : Zed_string.t -> (Zed_char.t * LTerm_style.t) array
Sourceval of_utf8_maybe_invalid : string -> (Zed_char.t * LTerm_style.t) array
Sourceval to_string : (Zed_char.t * 'a) array -> Zed_string.t
Sourceval of_rope : Zed_rope.rope -> (Zed_char.t * LTerm_style.t) array
Sourceval to_rope : (Zed_char.t * 'a) array -> Zed_rope.rope
Sourceval stylise : string -> 'a -> (Zed_char.t * 'a) array
Sourceval lparen : Zed_char.t
Sourceval rparen : Zed_char.t
Sourceval lbrace : Zed_char.t
Sourceval rbrace : Zed_char.t
Sourceval lbracket : Zed_char.t
Sourceval rbracket : Zed_char.t
Sourcetype search_result =
  1. | No_match_found
  2. | No_paren_found
  3. | Match_found of int
Sourceval stylise_parenthesis : (Zed_char.t * LTerm_style.t) array -> ?paren:(Zed_char.t * Zed_char.t) list -> int -> LTerm_style.t -> unit
Sourcetype item =
  1. | S of LiteralIntf.string_intf
  2. | R of Zed_rope.t
  3. | B_bold of bool
  4. | E_bold
  5. | B_underline of bool
  6. | E_underline
  7. | B_reverse of bool
  8. | E_reverse
  9. | B_fg of LTerm_style.color
  10. | E_fg
  11. | B_bg of LTerm_style.color
  12. | E_bg
Sourcetype markup = item list
Sourcetype eval_stack = {
  1. mutable q_bold : bool option list;
  2. mutable q_underline : bool option list;
  3. mutable q_reverse : bool option list;
  4. mutable q_fg : LTerm_style.color option list;
  5. mutable q_bg : LTerm_style.color option list;
}
Sourceval markup_length : item list -> int
Sourceval eval : item list -> (Zed_char.t * LTerm_style.t) array
Styled formatters
Sourceval make_formatter : ?read_color:(Format.tag -> LTerm_style.t) -> unit -> (unit -> (Zed_char.t * LTerm_style.t) array) * Format.formatter
Sourceval pp_with_style : ('a -> Format.tag) -> 'a -> ('b, Format.formatter, unit, unit) format4 -> Format.formatter -> 'b
Sourceval kstyprintf : ?read_color:(Format.tag -> LTerm_style.t) -> ((Zed_char.t * LTerm_style.t) array -> 'a) -> ('b, Format.formatter, unit, 'a) format4 -> 'b
Sourceval styprintf : ?read_color:(Format.tag -> LTerm_style.t) -> ('a, Format.formatter, unit, (Zed_char.t * LTerm_style.t) array) format4 -> 'a
OCaml

Innovation. Community. Security.