Sha256: 929359eeb18f68fc6c7428d5b9c3159e7087e29ade8198f708997136d43f4338

Contents?: true

Size: 1.85 KB

Versions: 37

Compression:

Stored size: 1.85 KB

Contents

#ifndef CMARK_PARSER_H
#define CMARK_PARSER_H

#include <stdio.h>
#include "references.h"
#include "node.h"
#include "buffer.h"

#ifdef __cplusplus
extern "C" {
#endif

#define MAX_LINK_LABEL_LENGTH 1000

struct cmark_parser {
  struct cmark_mem *mem;
  /* A hashtable of urls in the current document for cross-references */
  struct cmark_map *refmap;
  /* The root node of the parser, always a CMARK_NODE_DOCUMENT */
  struct cmark_node *root;
  /* The last open block after a line is fully processed */
  struct cmark_node *current;
  /* See the documentation for cmark_parser_get_line_number() in cmark.h */
  int line_number;
  /* See the documentation for cmark_parser_get_offset() in cmark.h */
  bufsize_t offset;
  /* See the documentation for cmark_parser_get_column() in cmark.h */
  bufsize_t column;
  /* See the documentation for cmark_parser_get_first_nonspace() in cmark.h */
  bufsize_t first_nonspace;
  /* See the documentation for cmark_parser_get_first_nonspace_column() in cmark.h */
  bufsize_t first_nonspace_column;
  bufsize_t thematic_break_kill_pos;
  /* See the documentation for cmark_parser_get_indent() in cmark.h */
  int indent;
  /* See the documentation for cmark_parser_is_blank() in cmark.h */
  bool blank;
  /* See the documentation for cmark_parser_has_partially_consumed_tab() in cmark.h */
  bool partially_consumed_tab;
  /* Contains the currently processed line */
  cmark_strbuf curline;
  /* See the documentation for cmark_parser_get_last_line_length() in cmark.h */
  bufsize_t last_line_length;
  /* FIXME: not sure about the difference with curline */
  cmark_strbuf linebuf;
  /* Options set by the user, see the Options section in cmark.h */
  int options;
  bool last_buffer_ended_with_cr;
  cmark_llist *syntax_extensions;
  cmark_llist *inline_syntax_extensions;
  cmark_ispunct_func backslash_ispunct;
};

#ifdef __cplusplus
}
#endif

#endif

Version data entries

37 entries across 37 versions & 5 rubygems

Version Path
qiita_marker-0.23.6.2 ext/qiita_marker/parser.h
commonmarker-0.23.7.pre1 ext/commonmarker/parser.h
qiita_marker-0.23.6.1 ext/qiita_marker/parser.h
qiita_marker-0.23.6.0 ext/qiita_marker/parser.h
commonmarker-0.23.6 ext/commonmarker/parser.h
qiita_marker-0.23.5.1 ext/qiita_marker/parser.h
qiita_marker-0.23.5.0 ext/qiita_marker/parser.h
commonmarker-0.23.5 ext/commonmarker/parser.h
qiita_marker-0.23.2.3 ext/qiita_marker/parser.h
commonmarker-0.23.4 ext/commonmarker/parser.h
mountapi-0.11.1 vendor/bundle/ruby/2.7.0/gems/commonmarker-0.23.2/ext/commonmarker/parser.h
markly-0.7.0 ext/markly/parser.h
qiita_marker-0.23.2.2 ext/qiita_marker/parser.h
qiita_marker-0.23.2.1 ext/qiita_marker/parser.h
qiita_marker-0.23.2.0 ext/qiita_marker/parser.h
commonmarker-0.23.2 ext/commonmarker/parser.h
commonmarker-0.23.1 ext/commonmarker/parser.h
markly-0.6.1 ext/markly/parser.h
commonmarker-0.23.0 ext/commonmarker/parser.h
markly-0.6.0 ext/markly/parser.h