%YAML 1.2 --- # http://www.sublimetext.com/docs/3/syntax.html name: HTML (Erlang) file_extensions: - yaws scope: text.html.erlang variables: # https://html.spec.whatwg.org/multipage/parsing.html#tag-name-state break_char: '[\t\n\f /<>]' contexts: main: - include: tag-erlang - include: scope:text.html.basic ###[ PUBLIC CONTEXT ]######################################################### tag-erlang: # Note: This context can be included in other HTML # variants to support the Erlang custom tag. # Use: - import: scope:text.html.erlang#tag-erlang - match: (<)((?i:erl))(?={{break_char}}) captures: 1: punctuation.definition.tag.begin.html 2: entity.name.tag.erl.html push: [tag-erlang-body, tag-erlang-attributes] ###[ PRIVATE CONTEXTS ]####################################################### tag-erlang-attributes: - meta_scope: meta.tag.erl.begin.html - include: scope:text.html.basic#tag-end - include: scope:text.html.basic#tag-attributes tag-erlang-body: - match: (