Makeup v0.1.1 Makeup.Lexers.HTML5 View Source

Documentation for the HTML5 lexer.

Unlike the Pygments lexer that served as an inspiration (which uses Regexs), we try to make a proper job out of parsing the HTML and extract some structure.

We will match opening and closing tags, and will make use of those tags to add some functionality.

Link to this section Summary

Functions

Link to this section Functions

Link to this macro alt(context_ast, choices) View Source (macro)
Link to this macro branch(context_ast, parser_ast, symbol_map_ast) View Source (macro)
Link to this function char_charrangelist_matches(c, matchers, defaultValue \\ false) View Source
Link to this macro chars(context_ast, matchers_ast, minimumChars \\ 1, maximumChars \\ -1) View Source (macro)
Link to this macro chars1(context_ast, firstMatcher_ast, matchers_ast, minimumChars \\ 1, maximumChars \\ -1) View Source (macro)
Link to this function chars_increment_while_matching(matchers, maximumChars, arg3, position, column, line, chars) View Source
Link to this function document_text(orig_context) View Source
Link to this macro eoi(context_ast, opts \\ []) View Source (macro)
Link to this macro expect(context_ast, parser_ast) View Source (macro)
Link to this function extended_attribute_name(orig_context) View Source
Link to this function extended_identifier(orig_context) View Source
Link to this function extended_tag_name(orig_context) View Source
Link to this function fail(context, reason \\ nil) View Source
Link to this macro get_state_into(context_ast, key, parser_ast) View Source (macro)
Link to this function html_self_closing_tag(orig_context) View Source
Link to this macro ignore(context_ast, parser_ast, opts \\ []) View Source (macro)
Link to this function lex(source, merge \\ true) View Source
Link to this macro lexeme(context_ast, parser_ast) View Source (macro)
Link to this macro lookahead(context_ast, parser_ast) View Source (macro)
Link to this macro lookahead_not(context_ast, parser_ast) View Source (macro)
Link to this macro no_skip(context_ast, parser_ast) View Source (macro)
Link to this macro parse(rest, parser, opts \\ []) View Source (macro)
Link to this macro pipe_context_around(context_ast, mapper_ast, parser_ast) View Source (macro)
Link to this macro pipe_context_into(context_ast, mapper_ast) View Source (macro)
Link to this macro pipe_result_into(context_ast, mapper_ast) View Source (macro)
Link to this macro push_state(context_ast, key, from) View Source (macro)
Link to this macro put_state(context_ast, key, from) View Source (macro)
Link to this macro repeat(context_ast, parser_ast, minimum \\ 0, maximum \\ -1) View Source (macro)
Link to this function repeatFn(context, parser, minimum \\ 0, maximum \\ -1) View Source
Link to this macro seq(context_ast, list) View Source (macro)
Link to this macro skip(context_ast) View Source (macro)
Link to this macro skipper(context_ast, parser_ast, skipper_ast) View Source (macro)
Link to this function string_double(orig_context) View Source
Link to this function string_single(orig_context) View Source
Link to this function success(context, value \\ nil) View Source
Link to this function symbols(context, tree_map) View Source
Link to this macro tag(context_ast, tag_ast, parser_ast) View Source (macro)
Link to this function uint(context, radix \\ 10, minDigits \\ 1, maxDigits \\ -1) View Source
Link to this function unquoted_attribute_value(orig_context) View Source
Link to this macro valid_context?(context_ast) View Source (macro)
Link to this macro valid_context_matcher() View Source (macro)
Link to this function whitespace(orig_context) View Source
Link to this function xml_self_closing_tag(orig_context) View Source