{ "name": "Markdown", "scopeName": "source.lean.markdown", "patterns": [ { "include": "#frontMatter" }, { "include": "#block" } ], "repository": { "ampersand": { "name": "meta.other.valid-ampersand.markdown", "match": "\u0026(?!([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+);)" }, "block": { "patterns": [ { "include": "#separator" }, { "include": "#heading" }, { "include": "#blockquote" }, { "include": "#lists" }, { "include": "#fenced_code_block" }, { "include": "#raw_block" }, { "include": "#link-def" }, { "include": "#html" }, { "include": "#inline" }, {}, { "include": "#heading-setext" }, { "include": "#paragraphb" } ] }, "blockquote": { "name": "markup.quote.markdown", "begin": "(^|\\G)[ ]{0,3}(\u003e) ?", "while": "(^|\\G)\\s*(\u003e) ?", "patterns": [ { "include": "#block" } ], "captures": { "2": { "name": "punctuation.definition.quote.begin.markdown" } } }, "bold": { "name": "markup.bold.markdown", "begin": "(?x) (\\*\\*(?=\\w)|(?\u003c!\\w)\\*\\*|(?\u003c!\\w)\\b__)(?=\\S) (?=\n (\n \u003c[^\u003e]*+\u003e # HTML tags\n | (?\u003craw\u003e`+)([^`]|(?!(?\u003c!`)\\k\u003craw\u003e(?!`))`)*+\\k\u003craw\u003e\n # Raw\n | \\\\[\\\\`*_{}\\[\\]()#.!+\\-\u003e]?+ # Escapes\n | \\[\n (\n (?\u003csquare\u003e # Named group\n [^\\[\\]\\\\] # Match most chars\n | \\\\. # Escaped chars\n | \\[ \\g\u003csquare\u003e*+ \\] # Nested brackets\n )*+\n \\]\n (\n ( # Reference Link\n [ ]? # Optional space\n \\[[^\\]]*+\\] # Ref name\n )\n | ( # Inline Link\n \\( # Opening paren\n [ \\t]*+ # Optional whitespace\n \u003c?(.*?)\u003e? # URL\n [ \\t]*+ # Optional whitespace\n ( # Optional Title\n (?\u003ctitle\u003e['\"])\n (.*?)\n \\k\u003ctitle\u003e\n )?\n \\)\n )\n )\n )\n | (?!(?\u003c=\\S)\\1). # Everything besides\n # style closer\n )++\n (?\u003c=\\S)(?=__\\b|\\*\\*)\\1 # Close\n)\n", "end": "(?\u003c=\\S)(\\1)", "patterns": [ { "begin": "(?=\u003c[^\u003e]*?\u003e)", "end": "(?\u003c=\u003e)", "patterns": [ {} ], "applyEndPatternLast": true }, { "include": "#escape" }, { "include": "#ampersand" }, { "include": "#bracket" }, { "include": "#raw" }, { "include": "#bold" }, { "include": "#italic" }, { "include": "#image-inline" }, { "include": "#link-inline" }, { "include": "#link-inet" }, { "include": "#link-email" }, { "include": "#image-ref" }, { "include": "#link-ref-literal" }, { "include": "#link-ref" }, { "include": "#link-ref-shortcut" } ], "captures": { "1": { "name": "punctuation.definition.bold.markdown" } } }, "bracket": { "name": "meta.other.valid-bracket.markdown", "match": "\u003c(?![a-zA-Z/?\\$!])" }, "escape": { "name": "constant.character.escape.markdown", "match": "\\\\[-`*_#+.!(){}\\[\\]\\\\\u003e]" }, "fenced_code_block": { "patterns": [ { "include": "#fenced_code_block_css" }, { "include": "#fenced_code_block_basic" }, { "include": "#fenced_code_block_ini" }, { "include": "#fenced_code_block_java" }, { "include": "#fenced_code_block_lua" }, { "include": "#fenced_code_block_makefile" }, { "include": "#fenced_code_block_perl" }, { "include": "#fenced_code_block_r" }, { "include": "#fenced_code_block_ruby" }, { "include": "#fenced_code_block_php" }, { "include": "#fenced_code_block_sql" }, { "include": "#fenced_code_block_vs_net" }, { "include": "#fenced_code_block_xml" }, { "include": "#fenced_code_block_xsl" }, { "include": "#fenced_code_block_yaml" }, { "include": "#fenced_code_block_dosbatch" }, { "include": "#fenced_code_block_clojure" }, { "include": "#fenced_code_block_coffee" }, { "include": "#fenced_code_block_c" }, { "include": "#fenced_code_block_cpp" }, { "include": "#fenced_code_block_diff" }, { "include": "#fenced_code_block_dockerfile" }, { "include": "#fenced_code_block_git_commit" }, { "include": "#fenced_code_block_git_rebase" }, { "include": "#fenced_code_block_go" }, { "include": "#fenced_code_block_groovy" }, { "include": "#fenced_code_block_pug" }, { "include": "#fenced_code_block_js" }, { "include": "#fenced_code_block_js_regexp" }, { "include": "#fenced_code_block_json" }, { "include": "#fenced_code_block_jsonc" }, { "include": "#fenced_code_block_less" }, { "include": "#fenced_code_block_objc" }, { "include": "#fenced_code_block_swift" }, { "include": "#fenced_code_block_scss" }, { "include": "#fenced_code_block_perl6" }, { "include": "#fenced_code_block_powershell" }, { "include": "#fenced_code_block_python" }, { "include": "#fenced_code_block_regexp_python" }, { "include": "#fenced_code_block_rust" }, { "include": "#fenced_code_block_scala" }, { "include": "#fenced_code_block_shell" }, { "include": "#fenced_code_block_ts" }, { "include": "#fenced_code_block_tsx" }, { "include": "#fenced_code_block_csharp" }, { "include": "#fenced_code_block_fsharp" }, { "include": "#fenced_code_block_dart" }, { "include": "#fenced_code_block_handlebars" }, { "include": "#fenced_code_block_markdown" }, { "include": "#fenced_code_block_log" }, { "include": "#fenced_code_block_unknown" } ] }, "fenced_code_block_basic": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(html|htm|shtml|xhtml|inc|tmpl|tpl)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.html", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "text.html.basic" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_c": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(c|h)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.c", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.c" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_clojure": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(clj|cljs|clojure)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.clojure", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.clojure" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_coffee": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(coffee|Cakefile|coffee.erb)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.coffee", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.coffee" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_cpp": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(cpp|c\\+\\+|cxx)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.cpp source.cpp", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.c++" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_csharp": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(cs|csharp|c#)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.csharp", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.cs" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_css": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(css|css.erb)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.css", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.css" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_dart": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(dart)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.dart", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.dart" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_diff": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(patch|diff|rej)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.diff", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.diff" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_dockerfile": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(dockerfile|Dockerfile)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.dockerfile", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.dockerfile" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_dosbatch": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(bat|batch)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.dosbatch", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.batchfile" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_fsharp": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(fs|fsharp|f#)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.fsharp", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.fsharp" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_git_commit": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(COMMIT_EDITMSG|MERGE_MSG)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.git_commit", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ {} ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_git_rebase": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(git-rebase-todo)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.git_rebase", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ {} ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_go": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(go|golang)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.go", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.go" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_groovy": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(groovy|gvy)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.groovy", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.groovy" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_handlebars": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(handlebars|hbs)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.handlebars", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "text.html.handlebars" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_ini": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(ini|conf)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.ini", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.ini" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_java": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(java|bsh)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.java", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.java" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_js": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(js|jsx|javascript|es6|mjs|cjs|\\{\\.js.+?\\})((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.javascript", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.js" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_js_regexp": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(regexp)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.js_regexp", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.js.regexp" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_json": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(json|json5|sublime-settings|sublime-menu|sublime-keymap|sublime-mousemap|sublime-theme|sublime-build|sublime-project|sublime-completions)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.json", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.json" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_jsonc": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(jsonc)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.jsonc", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ {} ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_less": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(less)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.less", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.css.less" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_log": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(log)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.log", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ {} ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_lua": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(lua)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.lua", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.lua" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_makefile": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(Makefile|makefile|GNUmakefile|OCamlMakefile)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.makefile", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.makefile" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_markdown": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(markdown|md)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.markdown", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.gfm" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_objc": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(objectivec|objective-c|mm|objc|obj-c|m|h)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.objc", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.objc" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_perl": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(perl|pl|pm|pod|t|PL|psgi|vcl)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.perl", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.perl" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_perl6": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(perl6|p6|pl6|pm6|nqp)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.perl6", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.perl.6" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_php": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(php|php3|php4|php5|phpt|phtml|aw|ctp)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.php", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "text.html.basic" }, { "include": "text.html.php" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_powershell": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(powershell|ps1|psm1|psd1)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.powershell", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.powershell" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_pug": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(jade|pug)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.pug", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "text.jade" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_python": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(python|py|py3|rpy|pyw|cpy|SConstruct|Sconstruct|sconstruct|SConscript|gyp|gypi|\\{\\.python.+?\\})((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.python", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.python" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_r": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(R|r|s|S|Rprofile|\\{\\.r.+?\\})((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.r", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.r" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_regexp_python": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(re)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.regexp_python", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.regexp.python" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_ruby": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(ruby|rb|rbx|rjs|Rakefile|rake|cgi|fcgi|gemspec|irbrc|Capfile|ru|prawn|Cheffile|Gemfile|Guardfile|Hobofile|Vagrantfile|Appraisals|Rantfile|Berksfile|Berksfile.lock|Thorfile|Puppetfile)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.ruby", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.ruby" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_rust": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(rust|rs|\\{\\.rust.+?\\})((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.rust", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.rust" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_scala": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(scala|sbt)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.scala", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.scala" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_scss": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(scss)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.scss", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.css.scss" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_shell": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(shell|sh|bash|zsh|bashrc|bash_profile|bash_login|profile|bash_logout|.textmate_init|\\{\\.bash.+?\\})((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.shellscript", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.shell" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_sql": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(sql|ddl|dml)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.sql", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.sql" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_swift": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(swift)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.swift", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.swift" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_ts": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(typescript|ts)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.typescript", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.ts" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_tsx": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(tsx)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.typescriptreact", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.tsx" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_unknown": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?=([^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_vs_net": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(vb)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.vs_net", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ {} ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_xml": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(xml|xsd|tld|jsp|pt|cpt|dtml|rss|opml)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.xml", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "text.xml" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_xsl": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(xsl|xslt)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.xsl", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "text.xml.xsl" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "fenced_code_block_yaml": { "name": "markup.fenced_code.block.markdown", "begin": "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(yaml|yml)((\\s+|:|\\{)[^`~]*)?$)", "end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", "patterns": [ { "contentName": "meta.embedded.block.yaml", "begin": "(^|\\G)(\\s*)(.*)", "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)", "patterns": [ { "include": "source.yaml" } ] } ], "beginCaptures": { "3": { "name": "punctuation.definition.markdown" }, "4": { "name": "fenced_code.block.language.markdown" }, "5": { "name": "fenced_code.block.language.attributes.markdown" } }, "endCaptures": { "3": { "name": "punctuation.definition.markdown" } } }, "frontMatter": { "contentName": "meta.embedded.block.frontmatter", "begin": "\\A-{3}\\s*$", "end": "(^|\\G)-{3}|\\.{3}\\s*$", "patterns": [ { "include": "source.yaml" } ] }, "heading": { "name": "markup.heading.markdown", "match": "(?:^|\\G)[ ]{0,3}((#{1,6})\\s+(?=[\\S[^#]]).*?\\s*(#{1,6})?)((?=-/)|$\\n?)", "patterns": [ { "include": "#inline" } ], "captures": { "1": { "patterns": [ { "name": "heading.6.markdown", "match": "(#{6})\\s+(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?", "captures": { "1": { "name": "punctuation.definition.heading.markdown" }, "2": { "name": "entity.name.section.markdown" }, "3": { "name": "punctuation.definition.heading.markdown" } } }, { "name": "heading.5.markdown", "match": "(#{5})\\s+(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?", "captures": { "1": { "name": "punctuation.definition.heading.markdown" }, "2": { "name": "entity.name.section.markdown" }, "3": { "name": "punctuation.definition.heading.markdown" } } }, { "name": "heading.4.markdown", "match": "(#{4})\\s+(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?", "captures": { "1": { "name": "punctuation.definition.heading.markdown" }, "2": { "name": "entity.name.section.markdown" }, "3": { "name": "punctuation.definition.heading.markdown" } } }, { "name": "heading.3.markdown", "match": "(#{3})\\s+(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?", "captures": { "1": { "name": "punctuation.definition.heading.markdown" }, "2": { "name": "entity.name.section.markdown" }, "3": { "name": "punctuation.definition.heading.markdown" } } }, { "name": "heading.2.markdown", "match": "(#{2})\\s+(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?", "captures": { "1": { "name": "punctuation.definition.heading.markdown" }, "2": { "name": "entity.name.section.markdown" }, "3": { "name": "punctuation.definition.heading.markdown" } } }, { "name": "heading.1.markdown", "match": "(#{1})\\s+(?=[\\S[^#]])(.*?)\\s*(\\s+#+)?$\\n?", "captures": { "1": { "name": "punctuation.definition.heading.markdown" }, "2": { "name": "entity.name.section.markdown" }, "3": { "name": "punctuation.definition.heading.markdown" } } } ] } } }, "heading-setext": { "patterns": [ { "name": "markup.heading.setext.1.markdown", "match": "^(={3,})(?=[ \\t]*$\\n?)" }, { "name": "markup.heading.setext.2.markdown", "match": "^(-{3,})(?=[ \\t]*$\\n?)" } ] }, "html": { "patterns": [ { "name": "comment.block.html", "begin": "(^|\\G)\\s*(\u003c!--)", "end": "(--\u003e)", "captures": { "1": { "name": "punctuation.definition.comment.html" }, "2": { "name": "punctuation.definition.comment.html" } } }, { "begin": "(?i)(^|\\G)\\s*(?=\u003c(script|style|pre)(\\s|$|\u003e)(?!.*?\u003c/(script|style|pre)\u003e))", "end": "(?i)(.*)((\u003c/)(script|style|pre)(\u003e))", "patterns": [ { "begin": "(\\s*|$)", "while": "(?i)^(?!.*\u003c/(script|style|pre)\u003e)", "patterns": [ {} ] } ], "endCaptures": { "1": { "patterns": [ {} ] }, "2": { "name": "meta.tag.structure.$4.end.html" }, "3": { "name": "punctuation.definition.tag.begin.html" }, "4": { "name": "entity.name.tag.html" }, "5": { "name": "punctuation.definition.tag.end.html" } } }, { "begin": "(?i)(^|\\G)\\s*(?=\u003c/?[a-zA-Z]+[^\\s/\u0026gt;]*(\\s|$|/?\u003e))", "while": "^(?!\\s*$)", "patterns": [ {} ] }, { "begin": "(^|\\G)\\s*(?=(\u003c[a-zA-Z0-9\\-](/?\u003e|\\s.*?\u003e)|\u003c/[a-zA-Z0-9\\-]\u003e)\\s*$)", "while": "^(?!\\s*$)", "patterns": [ {} ] } ] }, "image-inline": { "name": "meta.image.inline.markdown", "match": "(?x)\n (\\!\\[)((?\u003csquare\u003e[^\\[\\]\\\\]|\\\\.|\\[\\g\u003csquare\u003e*+\\])*+)(\\])\n # Match the link text.\n (\\() # Opening paren for url\n (\u003c?)(\\S+?)(\u003e?) # The url\n [ \\t]* # Optional whitespace\n (?:\n ((\\().+?(\\))) # Match title in parens…\n | ((\").+?(\")) # or in quotes.\n )? # Title is optional\n \\s* # Optional whitespace\n (\\))\n", "captures": { "1": { "name": "punctuation.definition.string.begin.markdown" }, "10": { "name": "punctuation.definition.string.markdown" }, "11": { "name": "punctuation.definition.string.markdown" }, "12": { "name": "string.other.link.description.title.markdown" }, "13": { "name": "punctuation.definition.string.markdown" }, "14": { "name": "punctuation.definition.string.markdown" }, "15": { "name": "punctuation.definition.metadata.markdown" }, "2": { "name": "string.other.link.description.markdown" }, "4": { "name": "punctuation.definition.string.end.markdown" }, "5": { "name": "punctuation.definition.metadata.markdown" }, "6": { "name": "punctuation.definition.link.markdown" }, "7": { "name": "markup.underline.link.image.markdown" }, "8": { "name": "punctuation.definition.link.markdown" }, "9": { "name": "string.other.link.description.title.markdown" } } }, "image-ref": { "name": "meta.image.reference.markdown", "match": "(\\!\\[)((?\u003csquare\u003e[^\\[\\]\\\\]|\\\\.|\\[\\g\u003csquare\u003e*+\\])*+)(\\])[ ]?(\\[)(.*?)(\\])", "captures": { "1": { "name": "punctuation.definition.string.begin.markdown" }, "2": { "name": "string.other.link.description.markdown" }, "4": { "name": "punctuation.definition.string.begin.markdown" }, "5": { "name": "punctuation.definition.constant.markdown" }, "6": { "name": "constant.other.reference.link.markdown" }, "7": { "name": "punctuation.definition.constant.markdown" } } }, "inline": { "patterns": [ { "include": "#ampersand" }, { "include": "#bracket" }, { "include": "#bold" }, { "include": "#italic" }, { "include": "#raw" }, { "include": "#escape" }, { "include": "#image-inline" }, { "include": "#image-ref" }, { "include": "#link-email" }, { "include": "#link-inet" }, { "include": "#link-inline" }, { "include": "#link-ref" }, { "include": "#link-ref-literal" }, { "include": "#link-ref-shortcut" } ] }, "italic": { "name": "markup.italic.markdown", "begin": "(?x) (\\*(?=\\w)|(?\u003c!\\w)\\*|(?\u003c!\\w)\\b_)(?=\\S) # Open\n (?=\n (\n \u003c[^\u003e]*+\u003e # HTML tags\n | (?\u003craw\u003e`+)([^`]|(?!(?\u003c!`)\\k\u003craw\u003e(?!`))`)*+\\k\u003craw\u003e\n # Raw\n | \\\\[\\\\`*_{}\\[\\]()#.!+\\-\u003e]?+ # Escapes\n | \\[\n (\n (?\u003csquare\u003e # Named group\n [^\\[\\]\\\\] # Match most chars\n | \\\\. # Escaped chars\n | \\[ \\g\u003csquare\u003e*+ \\] # Nested brackets\n )*+\n \\]\n (\n ( # Reference Link\n [ ]? # Optional space\n \\[[^\\]]*+\\] # Ref name\n )\n | ( # Inline Link\n \\( # Opening paren\n [ \\t]*+ # Optional whtiespace\n \u003c?(.*?)\u003e? # URL\n [ \\t]*+ # Optional whtiespace\n ( # Optional Title\n (?\u003ctitle\u003e['\"])\n (.*?)\n \\k\u003ctitle\u003e\n )?\n \\)\n )\n )\n )\n | \\1\\1 # Must be bold closer\n | (?!(?\u003c=\\S)\\1). # Everything besides\n # style closer\n )++\n (?\u003c=\\S)(?=_\\b|\\*)\\1 # Close\n )\n", "end": "(?\u003c=\\S)(\\1)((?!\\1)|(?=\\1\\1))", "patterns": [ { "begin": "(?=\u003c[^\u003e]*?\u003e)", "end": "(?\u003c=\u003e)", "patterns": [ {} ], "applyEndPatternLast": true }, { "include": "#escape" }, { "include": "#ampersand" }, { "include": "#bracket" }, { "include": "#raw" }, { "include": "#bold" }, { "include": "#image-inline" }, { "include": "#link-inline" }, { "include": "#link-inet" }, { "include": "#link-email" }, { "include": "#image-ref" }, { "include": "#link-ref-literal" }, { "include": "#link-ref" }, { "include": "#link-ref-shortcut" } ], "captures": { "1": { "name": "punctuation.definition.italic.markdown" } } }, "link-def": { "name": "meta.link.reference.def.markdown", "match": "(?x)\n \\s* # Leading whitespace\n (\\[)([^]]+?)(\\])(:) # Reference name\n [ \\t]* # Optional whitespace\n (\u003c?)(\\S+?)(\u003e?) # The url\n [ \\t]* # Optional whitespace\n (?:\n ((\\().+?(\\))) # Match title in quotes…\n | ((\").+?(\")) # or in parens.\n )? # Title is optional\n \\s* # Optional whitespace\n $\n", "captures": { "1": { "name": "punctuation.definition.constant.markdown" }, "10": { "name": "punctuation.definition.string.end.markdown" }, "11": { "name": "string.other.link.description.title.markdown" }, "12": { "name": "punctuation.definition.string.begin.markdown" }, "13": { "name": "punctuation.definition.string.end.markdown" }, "2": { "name": "constant.other.reference.link.markdown" }, "3": { "name": "punctuation.definition.constant.markdown" }, "4": { "name": "punctuation.separator.key-value.markdown" }, "5": { "name": "punctuation.definition.link.markdown" }, "6": { "name": "markup.underline.link.markdown" }, "7": { "name": "punctuation.definition.link.markdown" }, "8": { "name": "string.other.link.description.title.markdown" }, "9": { "name": "punctuation.definition.string.begin.markdown" } } }, "link-email": { "name": "meta.link.email.lt-gt.markdown", "match": "(\u003c)((?:mailto:)?[-.\\w]+@[-a-z0-9]+(\\.[-a-z0-9]+)*\\.[a-z]+)(\u003e)", "captures": { "1": { "name": "punctuation.definition.link.markdown" }, "2": { "name": "markup.underline.link.markdown" }, "4": { "name": "punctuation.definition.link.markdown" } } }, "link-inet": { "name": "meta.link.inet.markdown", "match": "(\u003c)((?:https?|ftp)://.*?)(\u003e)", "captures": { "1": { "name": "punctuation.definition.link.markdown" }, "2": { "name": "markup.underline.link.markdown" }, "3": { "name": "punctuation.definition.link.markdown" } } }, "link-inline": { "name": "meta.link.inline.markdown", "match": "(?x)\n (\\[)((?\u003csquare\u003e[^\\[\\]\\\\]|\\\\.|\\[\\g\u003csquare\u003e*+\\])*+)(\\])\n # Match the link text.\n (\\() # Opening paren for url\n (\u003c?)((?\u003curl\u003e(?\u003e[^\\s()]+)|\\(\\g\u003curl\u003e*\\))*)(\u003e?) # The url\n [ \\t]* # Optional whitespace\n (?:\n ((\\().+?(\\))) # Match title in parens…\n | ((\").+?(\")) # or in quotes.\n )? # Title is optional\n \\s* # Optional whitespace\n (\\))\n", "captures": { "1": { "name": "punctuation.definition.string.begin.markdown" }, "10": { "name": "string.other.link.description.title.markdown" }, "11": { "name": "punctuation.definition.string.begin.markdown" }, "12": { "name": "punctuation.definition.string.end.markdown" }, "13": { "name": "string.other.link.description.title.markdown" }, "14": { "name": "punctuation.definition.string.begin.markdown" }, "15": { "name": "punctuation.definition.string.end.markdown" }, "16": { "name": "punctuation.definition.metadata.markdown" }, "2": { "name": "string.other.link.title.markdown" }, "4": { "name": "punctuation.definition.string.end.markdown" }, "5": { "name": "punctuation.definition.metadata.markdown" }, "6": { "name": "punctuation.definition.link.markdown" }, "7": { "name": "markup.underline.link.markdown" }, "9": { "name": "punctuation.definition.link.markdown" } } }, "link-ref": { "name": "meta.link.reference.markdown", "match": "(\\[)((?\u003csquare\u003e[^\\[\\]\\\\]|\\\\.|\\[\\g\u003csquare\u003e*+\\])*+)(\\])(\\[)([^\\]]*+)(\\])", "captures": { "1": { "name": "punctuation.definition.string.begin.markdown" }, "2": { "name": "string.other.link.title.markdown" }, "4": { "name": "punctuation.definition.string.end.markdown" }, "5": { "name": "punctuation.definition.constant.begin.markdown" }, "6": { "name": "constant.other.reference.link.markdown" }, "7": { "name": "punctuation.definition.constant.end.markdown" } } }, "link-ref-literal": { "name": "meta.link.reference.literal.markdown", "match": "(\\[)((?\u003csquare\u003e[^\\[\\]\\\\]|\\\\.|\\[\\g\u003csquare\u003e*+\\])*+)(\\])[ ]?(\\[)(\\])", "captures": { "1": { "name": "punctuation.definition.string.begin.markdown" }, "2": { "name": "string.other.link.title.markdown" }, "4": { "name": "punctuation.definition.string.end.markdown" }, "5": { "name": "punctuation.definition.constant.begin.markdown" }, "6": { "name": "punctuation.definition.constant.end.markdown" } } }, "link-ref-shortcut": { "name": "meta.link.reference.markdown", "match": "(\\[)(\\S+?)(\\])", "captures": { "1": { "name": "punctuation.definition.string.begin.markdown" }, "2": { "name": "string.other.link.title.markdown" }, "3": { "name": "punctuation.definition.string.end.markdown" } } }, "list_paragraph": { "name": "meta.paragraph.markdown", "begin": "(^|\\G)(?=\\S)(?![*+-\u003e]\\s|[0-9]+\\.\\s)", "while": "(^|\\G)(?!-/|\\s*$|#|[ ]{0,3}([-*_\u003e][ ]{2,}){3,}[ \\t]*$\\n?|[ ]{0,3}[*+-\u003e]|[ ]{0,3}[0-9]+\\.)", "patterns": [ { "include": "#inline" }, {}, { "include": "#heading-setext" } ] }, "lists": { "patterns": [ { "name": "markup.list.unnumbered.markdown", "begin": "(^|\\G)([ ]{0,3})([*+-])([ \\t])(?!.*-/)", "while": "((^|\\G)(?!.*-/)([ ]{2,4}|\\t))|(^[ \\t]*$)", "patterns": [ { "include": "#block" }, { "include": "#list_paragraph" } ], "beginCaptures": { "3": { "name": "punctuation.definition.list.begin.markdown" } } }, { "name": "markup.list.numbered.markdown", "begin": "(^|\\G)([ ]{0,3})([0-9]+\\.)([ \\t])(?!.*-/)", "while": "((^|\\G)(?!.*-/)([ ]{2,4}|\\t))|(^[ \\t]*$)", "patterns": [ { "include": "#block" }, { "include": "#list_paragraph" } ], "beginCaptures": { "3": { "name": "punctuation.definition.list.begin.markdown" } } } ] }, "paragraph": { "name": "meta.paragraph.markdown", "begin": "(^|\\G)[ ]{0,3}(?=\\S)", "while": "(^|\\G)((?=\\s*[-=]{3,}\\s*$)|[ ]{4,}(?=\\S))", "patterns": [ { "include": "#inline" }, {}, { "include": "#heading-setext" } ] }, "raw": { "name": "markup.inline.raw.string.markdown", "match": "(`+)([^`]|(?!(?\u003c!`)\\1(?!`))`)*+(\\1)", "captures": { "1": { "name": "punctuation.definition.raw.markdown" }, "3": { "name": "punctuation.definition.raw.markdown" } } }, "raw_block_disabled": { "name": "markup.raw.block.markdown", "begin": "(^|\\G)([ ]{4}|\\t)", "while": "(^|\\G)([ ]{4}|\\t)" }, "separator": { "name": "meta.separator.markdown", "match": "(^|\\G)[ ]{0,3}([\\*\\-\\_])([ ]{0,2}\\2){2,}[ \\t]*$\\n?" } } }