View raw

1 (** Shared token payload types used by both lexers and parsers. *) 2 3 type list_item_data = { 4 lid_indent : int; 5 lid_bullet : string; (** The bullet text including trailing space *) 6 lid_counter_set : int option; 7 lid_checkbox : string option; (** "[ ]", "[X]", "[-]" *) 8 lid_rest : string; (** Remainder of line after bullet/checkbox *) 9 } 10 (** A raw list item token payload. *) 11