From cb05f46dbe4709c6b720fffc9b10ba77acc886c4 Mon Sep 17 00:00:00 2001 From: deathaxe Date: Fri, 12 May 2023 12:42:20 +0200 Subject: [PATCH] Drop vendored Markdown syntax --- .github/workflows/ci-syntax-tests.yml | 2 - .../Markdown (for MDX).sublime-syntax | 3205 ----------------- Syntaxes/MDX.sublime-syntax | 2 +- 3 files changed, 1 insertion(+), 3208 deletions(-) delete mode 100644 Syntaxes/Embeddings/Markdown (for MDX).sublime-syntax diff --git a/.github/workflows/ci-syntax-tests.yml b/.github/workflows/ci-syntax-tests.yml index 5bbdedc..ace2338 100644 --- a/.github/workflows/ci-syntax-tests.yml +++ b/.github/workflows/ci-syntax-tests.yml @@ -27,8 +27,6 @@ jobs: strategy: matrix: include: - - build: 4126 - default_packages: v4126 - build: 4143 default_packages: v4143 - build: latest # latest available ST build diff --git a/Syntaxes/Embeddings/Markdown (for MDX).sublime-syntax b/Syntaxes/Embeddings/Markdown (for MDX).sublime-syntax deleted file mode 100644 index 738f21f..0000000 --- a/Syntaxes/Embeddings/Markdown (for MDX).sublime-syntax +++ /dev/null @@ -1,3205 +0,0 @@ -%YAML 1.2 ---- -# This definition aims to meet CommonMark specifications -# http://spec.commonmark.org/ -# with GitHub Formatted Markdown extensions -# https://github.github.com/gfm/ -# and has a few extras like Markdown Extra's footnotes -# https://michelf.ca/projects/php-markdown/extra/#footnotes -# -# The scope suffix should indicate which flavor of Markdown the feature came from, -# to help make this syntax definition easier to maintain. -scope: text.html.markdown.for-mdx -version: 2 -hidden: true - -variables: - atx_heading: (?:[ ]{,3}[#]{1,6}(?:[ \t]|$)) # between 0 and 3 spaces, followed 1 to 6 hashes, followed by at least one space or tab or by end of the line - atx_heading_space: (?:(?=[ \t]+#+[ \t]*$)|[ \t]+|$) # consume spaces only if heading is not empty to ensure `atx_heading_end` can fully match closing hashes - atx_heading_end: (?:[ \t]+(#+))?[ \t]*($\n?) # \n is optional so ## is matched as end punctuation in new document (at eof) - - setext_heading_or_paragraph: ^(?:[ ]{,3}=+|(?=[ ]{,3}\S)) # between 0 and 3 spaces, followed by non-whitespace (consume equal signs as paragraphs may start with them) - setext_heading_escape: ^(?=[ ]{,3}(?:=+|-+)[ \t]*$) # between 0 and 3 spaces, followed by at least one hyphen or equal sign (setext underline can be of any length) - setext_heading1_escape: ^(?=[ ]{,3}=+[ \t]*$) # between 0 and 3 spaces, followed by at least one equal sign (setext underline can be of any length) - setext_heading1_end: ^[ ]{,3}(=+)[ \t]*$(\n?) # between 0 and 3 spaces, followed by at least one equal sign (setext underline can be of any length) - setext_heading2_end: ^[ ]{,3}(-+)[ \t]*$(\n?) # between 0 and 3 spaces, followed by at least one hyphen (setext underline can be of any length) - - list_setext_heading_or_paragraph: (?:[ \t]*=+|(?=[ \t]*\S)) # any number of spaces, followed by non-whitespace (consume equal signs as paragraphs may start with them) - list_setext_heading_escape: ^(?=[ \t]{2,}(?:==+|--+)[ \t]*$) # two or more spaces, followed by at least one hyphen or equal sign (setext underline can be of any length, but ST needs at least 2 to avoid ambiguity with empty list items) - list_setext_heading1_escape: ^(?=[ \t]{2,}==+[ \t]*$) # two or more spaces, followed by at least one equal sign (setext underline can be of any length, but ST needs at least 2 to avoid ambiguity with empty list items) - list_setext_heading1_end: ^[ \t]{2,}(==+)[ \t]*$(\n?) # two or more spaces, followed by at least one equal sign (setext underline can be of any length, but ST needs at least 2 to avoid ambiguity with empty list items) - list_setext_heading2_end: ^[ \t]{2,}(--+)[ \t]*$(\n?) # two or more spaces, followed by at least one hyphen (setext underline can be of any length, but ST needs at least 2 to avoid ambiguity with empty list items) - - block_quote: (?:[ ]{,3}(>)[ ]?) # between 0 and 3 spaces, followed by a greater than sign, (followed by any character or the end of the line = "only care about optional space!") - indented_code_block: (?:[ ]{4}|[ ]{0,3}\t) # a visual tab of width 4 consisting of 4 spaces or 0 to 3 spaces followed by 1 tab - - first_list_item: (?:[ ]{,3}(?:1[.)]|[*+-])\s) # between 0 and 3 spaces, followed by either: at least one integer and a full stop or a parenthesis, or (a star, plus or dash), followed by whitespace - list_item: (?:[ ]{,3}(?:\d{1,9}[.)]|[*+-])\s) # between 0 and 3 spaces, followed by either: at least one integer and a full stop or a parenthesis, or (a star, plus or dash), followed by whitespace - - thematic_break: |- - (?x: - [ ]{,3} # between 0 to 3 spaces - (?: # followed by one of the following: - [-](?:[ \t]*[-]){2,} # - a dash, followed by the following at least twice: any number of spaces or tabs followed by a dash - | [*](?:[ \t]*[*]){2,} # - a star, followed by the following at least twice: any number of spaces or tabs followed by a star - | [_](?:[ \t]*[_]){2,} # - an underscore, followed by the following at least twice: any number of spaces or tabs followed by an underscore - ) - [ \t]*$ # followed by any number of tabs or spaces, followed by the end of the line - ) - - backticks: |- - (?x: - (`{4})(?![\s`])(?:[^`]+(?=`)|(?!`{4})`+(?!`))+(`{4})(?!`) # 4 backticks, followed by at least one non whitespace, non backtick character, followed by (less than 4 backticks, or at least one non backtick character) at least once, followed by exactly 4 backticks - | (`{3})(?![\s`])(?:[^`]+(?=`)|(?!`{3})`+(?!`))+(`{3})(?!`) # 3 backticks, followed by at least one non whitespace, non backtick character, followed by (less than 3 backticks, or at least one non backtick character) at least once, followed by exactly 3 backticks - | (`{2})(?![\s`])(?:[^`]+(?=`)|(?!`{2})`+(?!`))+(`{2})(?!`) # 2 backticks, followed by at least one non whitespace, non backtick character, followed by (less than 2 backticks, or at least one non backtick character) at least once, followed by exactly 2 backticks - | (`{1})(?![\s`])(?:[^`]+(?=`)|(?!`{1})`+(?!`))+(`{1})(?!`) # 1 backtick, followed by at least one non whitespace, non backtick character, followed by ( at least one non backtick character) at least once, followed by exactly 1 backtick - ) - escapes: \\[-+*/!"#$%&'(),.:;<=>?@\[\\\]^_`{|}~] - - balance_square_brackets: |- - (?x: - (?: - (?:{{escapes}})+ # escape characters - | [^\[\]`\\]+(?=[\[\]`\\]|$) # anything that isn't a square bracket or a backtick or the start of an escape character - | {{backticks}} # inline code - | \[(?: # nested square brackets (one level deep) - [^\[\]`]+(?=[\[\]`]) # anything that isn't a square bracket or a backtick - {{backticks}}? # balanced backticks - )*\] # closing square bracket - )+ - ) - balance_square_brackets_and_emphasis: |- - (?x: - (?: - (?:{{escapes}})+ # escape characters - | [^\[\]`\\_*]+(?=[\[\]`\\_*]|$) # anything that isn't a square bracket, a backtick, the start of an escape character, or an emphasis character - | {{backticks}} # inline code - | \[(?: # nested square brackets (one level deep) - [^\[\]`]+(?=[\[\]`]) # anything that isn't a square bracket or a backtick - {{backticks}}? # balanced backticks - )*\] # closing square bracket - )+ # at least one character - ) - balance_square_brackets_pipes_and_emphasis: |- - (?x: - (?: - (?:{{escapes}})+ # escape characters - | [^\[\]`\\_*|]+(?=[\[\]`\\_*|]|$) # anything that isn't a square bracket, a backtick, the start of an escape character, or an emphasis character - | {{backticks}} # inline code - | \[(?: # nested square brackets (one level deep) - [^\[\]`]+(?=[\[\]`]) # anything that isn't a square bracket or a backtick - {{backticks}}? # balanced backticks - )*\] # closing square bracket - )+ # at least one character - ) - balanced_emphasis: |- - (?x: - \* (?!\*){{balance_square_brackets_and_emphasis}}+\* (?!\*) - | \*\* {{balance_square_brackets_and_emphasis}}+\*\* - | _ (?!_) {{balance_square_brackets_and_emphasis}}+_ (?!_) - | __ {{balance_square_brackets_and_emphasis}}+__ - ) - - table_cell: |- - (?x: - # Pipes inside other inline spans (such as emphasis, code, etc.) will not break a cell, - # emphasis in table cells can't span multiple lines - (?: - {{balance_square_brackets_pipes_and_emphasis}} - | {{balanced_emphasis}} - )+ # at least one character - ) - table_first_row: |- - (?x: - # at least 2 non-escaped pipe chars on the line - (?:{{table_cell}}?\|){2} - - # something other than whitespace followed by a pipe char or hyphen, - # followed by something other than whitespace and the end of the line - | (?! \s*\-\s+ | \s+\|){{table_cell}}\|(?!\s+$) - ) - - fenced_code_block_start: |- - (?x: - ([ \t]*) - ( - (`){3,} # 3 or more backticks - (?![^`]*`) # not followed by any more backticks on the same line - | # or - (~){3,} # 3 or more tildas - ) - \s* # allow for whitespace between code block start and info string - ) - fenced_code_block_language: |- - (?x: # first word of an infostring is used as language specifier - ( - [[:alpha:]] # starts with a letter to make sure not to hit any attribute annotation - [^`\s]* # optionally followed by any nonwhitespace character (except backticks) - ) - ) - fenced_code_block_trailing_infostring_characters: |- - (?x: - ( - \s* # any whitespace, or .. - | - \s[^`]* # any characters (except backticks), separated by whitespace ... - ) - $\n? # ... until EOL - ) - fenced_code_block_end: |- - (?x: - [ \t]* - ( - \2 # the backtick/tilde combination that opened the code fence - (?:\3|\4)* # plus optional additional closing characters - ) - \s*$ # any amount of whitespace until EOL - ) - fenced_code_block_escape: ^{{fenced_code_block_end}} - - # https://spec.commonmark.org/0.30/#email-autolink - email_domain_commonmark: '[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?' - email_user_commonmark: '[a-zA-Z0-9.!#$%&''*+/=?^_`{|}~-]+' - - # https://spec.commonmark.org/0.30/#html-blocks - html_block: |- - (?x: - [ ]{,3} - (?: - {{html_tag_block_end_at_close_tag}} # html block type 1 - | {{html_tag_block_end_at_blank_line}} # html block type 6 - | {{html_block_open_tag}} # html block type 7 - | {{html_block_close_tag}} # html block type 7 - | {{html_block_comment}} # html block type 2 - | {{html_block_decl}} # html block type 4 - | {{html_block_cdata}} # html block type 5 - | {{html_block_preprocessor}} # html block type 3 - ) - ) - html_block_comment: