File: text.restructuredtext.json

package info (click to toggle)
ruby-github-linguist 7.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,300 kB
  • sloc: ruby: 1,763; lex: 144; ansic: 35; makefile: 3
file content (1 line) | stat: -rw-r--r-- 29,249 bytes parent folder | download | duplicates (2)
1
{"name":"reStructuredText","scopeName":"text.restructuredtext","patterns":[{"include":"#all"}],"repository":{"all":{"patterns":[{"include":"#escape"},{"include":"#line-blocks"},{"include":"#tables"},{"include":"#headings"},{"include":"#substitution-definition"},{"include":"#directives"},{"include":"#raw-blocks"},{"include":"#inlines"},{"include":"#tag-name"},{"include":"#doctests"},{"include":"#domains"},{"include":"#comments"}]},"anonymous-link":{"name":"meta.link.restructuredtext","match":"\\s*(__)\\s+(.+)","captures":{"1":{"name":"punctuation.definition.link.restructuredtext"},"2":{"name":"markup.underline.link.restructuredtext"}}},"citations":{"patterns":[{"name":"meta.link.citation.def.restructuredtext","match":"^(\\.\\.)\\s+((\\[)[A-z][A-z0-9]*(\\]))(_)\\s+(.*)","captures":{"1":{"name":"punctuation.definition.link.restructuredtext"},"2":{"name":"constant.other.citation.link.restructuredtext"},"3":{"name":"punctuation.definition.constant.restructuredtext"},"4":{"name":"punctuation.definition.constant.restructuredtext"},"5":{"name":"punctuation.definition.constant.restructuredtext"},"6":{"name":"string.other.citation.restructuredtext"}}},{"name":"meta.link.citation.restructuredtext","match":"((\\[)[A-z][A-z0-9_-]*(\\]))(_)","captures":{"1":{"name":"constant.other.citation.link.restructuredtext"},"2":{"name":"punctuation.definition.constant.restructuredtext"},"3":{"name":"punctuation.definition.constant.restructuredtext"},"4":{"name":"punctuation.definition.constant.restructuredtext"}}}]},"comments":{"patterns":[{"name":"comment.block.empty-start.double-dot.restructuredtext","begin":"^(\\.\\.)[\\t ]*$\\n?","end":"^(?\u003c=\\G)\\s*$\\n?|^(?=\\S)","patterns":[{"begin":"^(\\s+).*?\\S+\\s*$\\n","end":"^\\s*$\\n|^(?=\\S)"}],"beginCaptures":{"1":{"name":"punctuation.definition.comment.restructuredtext"}}},{"name":"comment.block.empty-start.double-dot.restructuredtext","begin":"^([\\t ]*)(\\.\\.)[\\t ]*$\\n?","end":"^(?!\\1\\s*\\S)|^(?\u003c!\\G)\\s*$\\n?|^(?=\\S)","patterns":[{"begin":"^(\\s+).*?\\S+\\s*$\\n","end":"^\\s*$\\n|^\\s*(?=\\S)"}],"beginCaptures":{"2":{"name":"punctuation.definition.comment.restructuredtext"}}},{"name":"comment.block.double-dot.restructuredtext","begin":"^(\\s*)(\\.\\.)(?=\\s|$)","end":"^(?!\\1[\\t\\s]+\\S|\\s*$)|^(?=\\S)","beginCaptures":{"2":{"name":"punctuation.definition.comment.restructuredtext"}}}]},"directive-options":{"patterns":[{"name":"meta.directive-option.restructuredtext","match":"(:[^:]+:)\\s*(.*)","captures":{"1":{"patterns":[{"include":"#tag-name"}]},"2":{"name":"string.other.tag-value.restructuredtext"}}}]},"directives":{"patterns":[{"name":"meta.image.restructuredtext","begin":"^(\\s*)(\\.\\.)\\s(image)(::)\\s*(\\S+)","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"#image-options"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"patterns":[{"include":"#uri"}]}}},{"name":"meta.figure.restructuredtext","begin":"^(\\s*)(\\.\\.)\\s(figure)(::)\\s*(\\S+)","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"#image-options"},{"include":"#all"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"patterns":[{"include":"#uri"}]}}},{"begin":"^([ \\t]*)(\\.\\.)\\s(raw)(::)\\s+(html)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"text.html.basic"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"entity.name.directive.restructuredtext"}}},{"contentName":"source.embedded.coffee","begin":"^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(coffee-?script)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"source.coffee"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"entity.name.directive.restructuredtext"}}},{"contentName":"source.embedded.js","begin":"^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(js|javascript)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"source.js"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"entity.name.directive.restructuredtext"}}},{"contentName":"source.embedded.ts","begin":"^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(typescript)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"source.ts"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"entity.name.directive.restructuredtext"}}},{"contentName":"source.embedded.json","begin":"^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(json)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"source.json"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"entity.name.directive.restructuredtext"}}},{"contentName":"source.embedded.css","begin":"^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(css)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"source.css"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"entity.name.directive.restructuredtext"}}},{"contentName":"source.embedded.xml","begin":"^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(xml)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"text.xml"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"entity.name.directive.restructuredtext"}}},{"contentName":"source.embedded.ruby","begin":"^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(ruby)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"source.ruby"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"entity.name.directive.restructuredtext"}}},{"contentName":"source.embedded.java","begin":"^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(java)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"source.java"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"entity.name.directive.restructuredtext"}}},{"contentName":"source.embedded.erlang","begin":"^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(erlang)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"source.erlang"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"entity.name.directive.restructuredtext"}}},{"contentName":"source.embedded.cs","begin":"^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(csharp|c#)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"source.cs"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"entity.name.directive.restructuredtext"}}},{"contentName":"source.embedded.php","begin":"^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(php[3-5]?)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"text.html.php"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"entity.name.directive.restructuredtext"}}},{"contentName":"source.embedded.shell","begin":"^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(shell|(ba|k)?sh)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"source.shell"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"entity.name.directive.restructuredtext"}}},{"contentName":"source.embedded.python","begin":"^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(py(thon)?|sage)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"source.python"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"entity.name.directive.restructuredtext"}}},{"contentName":"source.embedded.python","begin":"^([ \\t]*)(\\.\\.)\\s(ipython)(::)\\s+(py(thon)?)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"source.python"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"entity.name.directive.restructuredtext"}}},{"contentName":"source.embedded.stata","begin":"^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(stata)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"source.stata"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"entity.name.directive.restructuredtext"}}},{"contentName":"source.embedded.python","begin":"^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(sas)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"source.python"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"entity.name.directive.restructuredtext"}}},{"contentName":"source.embedded.objc","begin":"^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(objective-?c|obj-?c)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"source.objc"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"entity.name.directive.restructuredtext"}}},{"contentName":"source.embedded.yaml","begin":"^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(yaml)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"source.yaml"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"entity.name.directive.restructuredtext"}}},{"name":"source.embedded.latex","contentName":"markup.math.block.restructuredtext","begin":"^([ \\t]*)(\\.\\.)\\s(math)(::)\\s*$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"text.tex#math"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"}}},{"name":"meta.option.directive.restructuredtext","match":"^\\s*(\\.\\.)\\s(option)(::)\\s*(.+)?$","captures":{"1":{"name":"punctuation.definition.directive.restructuredtext"},"2":{"name":"support.directive.restructuredtext"},"3":{"name":"punctuation.separator.key-value.restructuredtext"},"4":{"patterns":[{"name":"punctuation.definition.bracket.angle.restructuredtext","match":"\u003c|\u003e"},{"name":"punctuation.delimiter.comma.restructuredtext","match":","},{"name":"entity.name.directive.restructuredtext","match":"[^\\s\u003c\u003e,]+"}]}}},{"name":"meta.other.directive.restructuredtext","match":"^\\s*(\\.\\.)\\s([A-z][-A-z0-9_]+)(::)\\s*$","captures":{"1":{"name":"punctuation.definition.directive.restructuredtext"},"2":{"name":"support.directive.restructuredtext"},"3":{"name":"punctuation.separator.key-value.restructuredtext"}}},{"name":"meta.other.directive.restructuredtext","match":"^\\s*(\\.\\.)\\s([A-z][-A-z0-9_]+)(::)\\s+(.+?)\\s*$","captures":{"1":{"name":"punctuation.definition.directive.restructuredtext"},"2":{"name":"support.directive.restructuredtext"},"3":{"name":"punctuation.separator.key-value.restructuredtext"},"4":{"name":"entity.name.directive.restructuredtext"}}}]},"doctests":{"name":"meta.doctest.restructuredtext","contentName":"markup.raw.restructuredtext","begin":"^(\\s*)(\u003e\u003e\u003e)\\s+(.*)$\\n","end":"^\\s*$|^(?=\\1\u003e\u003e\u003e )|^(?=\u003e\u003e\u003e)|^(?!\\1)\\s+\\S","beginCaptures":{"2":{"name":"punctuation.separator.prompt.doctest.restructuredtext"},"3":{"patterns":[{"include":"source.python"}]}}},"doctree-options":{"patterns":[{"name":"meta.doctree-option.class.restructuredtext","match":"(:class:)\\s*(.*)","captures":{"1":{"patterns":[{"include":"#tag-name"}]},"2":{"name":"string.other.class-list.restructuredtext"}}},{"name":"meta.doctree-option.name.restructuredtext","match":"(:name:)\\s*(.*)","captures":{"1":{"patterns":[{"include":"#tag-name"}]},"2":{"name":"string.other.name.restructuredtext"}}}]},"domains":{"patterns":[{"name":"meta.sphinx-domain.restructuredtext","contentName":"source.embedded.python","begin":"^(\\s*)(\\.\\.)\\s+(py)(:)([^:]+)(::)","end":"^(?!\\s*$|\\1[ \\t]{6,}\\S)","patterns":[{"match":"(?:\\G|^)([^(]*)(\\()([^\\\\)]*\\\\[^)]*)(\\))","captures":{"1":{"patterns":[{"include":"source.python"}]},"2":{"name":"punctuation.parenthesis.begin.python"},"3":{"patterns":[{"name":"constant.character.escape.restructuredtext","match":"\\\\."},{"include":"source.python"}]},"4":{"name":"punctuation.parenthesis.end.python"}}},{"include":"source.python"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"support.directive.restructuredtext"},"6":{"name":"punctuation.separator.key-value.restructuredtext"}}},{"name":"meta.sphinx-domain.restructuredtext","contentName":"source.embedded.c","begin":"^(\\s*)(\\.\\.)\\s+(c)(:)([^:]+)(::)","end":"^(?!\\s*$|\\1[ \\t]{5,}\\S)","patterns":[{"include":"source.c"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"support.directive.restructuredtext"},"6":{"name":"punctuation.separator.key-value.restructuredtext"}}},{"name":"meta.sphinx-domain.restructuredtext","begin":"^(\\s*)(\\.\\.)\\s+(cpp)(::?)([^:]+)(::)","end":"^(?!\\s*$|\\1[ \\t]{5,}\\S)","patterns":[{"match":"(.+)(\\\\?)$","captures":{"1":{"name":"source.embedded.cpp","patterns":[{"include":"source.c++"}]},"2":{"name":"constant.character.escape.newline.restructuredtext"}}}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"support.directive.restructuredtext"},"6":{"name":"punctuation.separator.key-value.restructuredtext"}}},{"name":"meta.sphinx-domain.restructuredtext","begin":"^(\\s*)(\\.\\.)\\s+(js)(:)([^:]+)(::)","end":"^(?!\\s*$|\\1[ \\t]{5,}\\S)","patterns":[{"match":"(.+)(\\\\?)$","captures":{"1":{"name":"source.embedded.js","patterns":[{"include":"source.js"}]},"2":{"name":"constant.character.escape.newline.restructuredtext"}}}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"support.directive.restructuredtext"},"6":{"name":"punctuation.separator.key-value.restructuredtext"}}},{"name":"meta.sphinx-domain.restructuredtext","contentName":"string.unquoted.domain.restructuredtext","begin":"^(\\s*)(\\.\\.)\\s+([^:]+)(::?)([^:]+)(::)","end":"^(?!\\s*$|\\1[ \\t]{5,}\\S)","beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"support.directive.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"name":"support.directive.restructuredtext"},"6":{"name":"punctuation.separator.key-value.restructuredtext"}}}]},"emphasis":{"patterns":[{"name":"markup.bold.restructuredtext","begin":"\\*\\*(?=[^\\*\\s])","end":"\\*\\*|^(?=\\s*$)","patterns":[{"include":"#inlines"}],"beginCaptures":{"0":{"name":"punctuation.definition.bold.begin.restructuredtext"}},"endCaptures":{"0":{"name":"punctuation.definition.bold.end.restructuredtext"}}},{"name":"markup.italic.restructuredtext","begin":"(?\u003c!\\\\)\\*(?=[^\\*\\s])","end":"(?\u003c!\\\\)\\*|^(?=\\s*$)","patterns":[{"include":"#inlines"}],"beginCaptures":{"0":{"name":"punctuation.definition.italic.begin.restructuredtext"}},"endCaptures":{"0":{"name":"punctuation.definition.italic.end.restructuredtext"}}}]},"escape":{"name":"constant.character.escape.backslash.restructuredtext","match":"\\\\."},"footnotes":{"patterns":[{"name":"meta.link.footnote.def.restructuredtext","contentName":"string.other.footnote.restructuredtext","begin":"^(\\s*)(\\.\\.)\\s+((\\[)(((#?)[^\\]]*?)|\\*)(\\]))\\s+","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"#inlines"}],"captures":{"2":{"name":"punctuation.definition.link.restructuredtext"},"3":{"name":"constant.other.footnote.link.restructuredtext"},"4":{"name":"punctuation.definition.constant.restructuredtext"},"7":{"name":"punctuation.definition.constant.restructuredtext"},"8":{"name":"punctuation.definition.constant.restructuredtext"}}},{"name":"meta.link.footnote.numeric.restructuredtext","match":"((\\[)[0-9]+(\\]))(_)","captures":{"1":{"name":"constant.other.footnote.link"},"2":{"name":"punctuation.definition.constant.restructuredtext"},"3":{"name":"punctuation.definition.constant.restructuredtext"},"4":{"name":"punctuation.definition.constant.restructuredtext"}}},{"name":"meta.link.footnote.auto.restructuredtext","match":"((\\[#)[A-z0-9_]*(\\]))(_)","captures":{"1":{"name":"constant.other.footnote.link"},"2":{"name":"punctuation.definition.constant.restructuredtext"},"3":{"name":"punctuation.definition.constant.restructuredtext"},"4":{"name":"punctuation.definition.constant.restructuredtext"}}},{"name":"meta.link.footnote.symbol.auto.restructuredtext","match":"((\\[)\\*(\\]))(_)","captures":{"1":{"name":"constant.other.footnote.link.restructuredtext"},"2":{"name":"punctuation.definition.constant.restructuredtext"},"3":{"name":"punctuation.definition.constant.restructuredtext"},"4":{"name":"punctuation.definition.constant.restructuredtext"}}}]},"headings":{"name":"markup.heading.restructuredtext","match":"^(([-=~`#\"^+*:.'_])\\2{2,})(?=\\s*$)","captures":{"1":{"name":"punctuation.definition.heading.restructuredtext"}}},"image-options":{"patterns":[{"name":"meta.image-option.alt.restructuredtext","match":"(:alt:)\\s*(.*)","captures":{"1":{"patterns":[{"include":"#tag-name"}]},"2":{"name":"string.other.tag-value.restructuredtext"}}},{"name":"meta.image-option.height.restructuredtext","match":"(:height:)\\s*(.*)","captures":{"1":{"patterns":[{"include":"#tag-name"}]},"2":{"patterns":[{"include":"#length"}]}}},{"name":"meta.image-option.width.restructuredtext","match":"(:width:)\\s*(.*)","captures":{"1":{"patterns":[{"include":"#tag-name"}]},"2":{"patterns":[{"include":"#length"}]}}},{"name":"meta.image-option.scale.restructuredtext","match":"(:scale:)\\s*(.*)","captures":{"1":{"patterns":[{"include":"#tag-name"}]},"2":{"patterns":[{"include":"#length"}]}}},{"name":"meta.image-option.align.restructuredtext","match":"(:align:)\\s*(?:(top|middle|bottom|left|center|right)\\b)?","captures":{"1":{"patterns":[{"include":"#tag-name"}]},"2":{"name":"keyword.language.image-alignment.restructuredtext"}}},{"name":"meta.image-option.target.restructuredtext","match":"(:target:)\\s*(.*)?","captures":{"1":{"patterns":[{"include":"#tag-name"}]},"2":{"name":"string.other.target.restructuredtext"}}},{"include":"#doctree-options"},{"include":"#directive-options"}]},"inlines":{"patterns":[{"include":"#escape"},{"include":"#emphasis"},{"include":"#link-definition"},{"include":"#substitution"},{"include":"#literal"},{"include":"#math-inline"},{"include":"#interpreted-line"},{"include":"#anonymous-link"},{"include":"#link-reference"},{"include":"#interpreted-block"},{"include":"#link-text"},{"include":"#footnotes"},{"include":"#citations"}]},"interpreted-block":{"name":"markup.other.command.restructuredtext","contentName":"string.other.interpreted.restructuredtext","begin":"(:)([-A-z0-9:_.]*?)(:)(`)","end":"(`)","patterns":[{"name":"meta.manpage.link.inline.restructuredtext","match":"(?\u003c=:manpage:`)\\G([-.\\w]+)(\\()(\\d+)(\\))","captures":{"1":{"name":"markup.bold.manpage-name.restructuredtext"},"2":{"name":"punctuation.definition.round.bracket.begin.restructuredtext"},"3":{"name":"constant.numeric.integer.restructuredtext"},"4":{"name":"punctuation.definition.round.bracket.begin.restructuredtext"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.intepreted.restructuredtext"},"2":{"name":"entity.name.role.restructuredtext"},"3":{"name":"punctuation.definition.intepreted.restructuredtext"},"4":{"name":"punctuation.definition.intepreted.restructuredtext"}},"endCaptures":{"1":{"name":"punctuation.definition.intepreted.restructuredtext"}}},"interpreted-line":{"name":"markup.other.command.restructuredtext","match":"(`)[^`]+(`)(?!_)","captures":{"1":{"name":"punctuation.definition.intepreted.restructuredtext"},"2":{"name":"punctuation.definition.intepreted.restructuredtext"}}},"length":{"name":"constant.numeric.length.restructuredtext","match":"[\\d.]+\\s*(?i:(em|ex|px|in|cm|mm|pt|pc)|(%))?","captures":{"1":{"name":"keyword.other.${1:/downcase}-unit.restructuredtext"},"2":{"name":"keyword.other.percentile-unit.restructuredtext"}}},"line-blocks":{"name":"meta.line-block.restructuredtext","begin":"^(\\s*)(\\|)(?!.*?(?\u003c=\\S)\\|)","end":"^(?=\\s*$\\n?)","patterns":[{"match":"^\\s*(\\|)","captures":{"0":{"name":"punctuation.separator.line-block.restructuredtext"}}},{"include":"#inlines"}],"beginCaptures":{"2":{"name":"punctuation.separator.line-block.restructuredtext"}}},"link-definition":{"patterns":[{"name":"meta.link.reference.def.restructuredtext","match":"(\\.\\.)\\s+(_)([-.:+\\d\\w\\s()/]+?)(:)\\s+(.*)","captures":{"1":{"name":"punctuation.definition.link.restructuredtext"},"2":{"name":"punctuation.definition.string.restructuredtext"},"3":{"name":"string.other.link.title.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"patterns":[{"include":"#uri"}]}}},{"name":"meta.link.reference.def.restructuredtext","match":"(\\.\\.)\\s+(_`)([^`]+)(`:)\\s+(.*)","captures":{"1":{"name":"punctuation.definition.link.restructuredtext"},"2":{"name":"punctuation.definition.string.restructuredtext"},"3":{"name":"string.other.link.title.restructuredtext"},"4":{"name":"punctuation.separator.key-value.restructuredtext"},"5":{"patterns":[{"include":"#uri"}]}}}]},"link-reference":{"patterns":[{"name":"meta.link.reference","match":"\\b([-.:+_\\d\\w]+)(_)\\b","captures":{"1":{"name":"string.other.link.title.restructuredtext"},"2":{"name":"punctuation.definition.link.restructuredtext"}}},{"name":"meta.link.reference","match":"(`)(.*?)(`__?)","captures":{"1":{"name":"punctuation.definition.link.restructuredtext"},"2":{"name":"string.other.link.title.restructuredtext"},"3":{"name":"punctuation.definition.link.restructuredtext"}}}]},"link-text":{"name":"meta.link.inline.restructuredtext","match":"(`)([^\u003c`]+)\\s+(\u003c)(.*?)(\u003e)(`_)","captures":{"1":{"name":"punctuation.definition.link.restructuredtext"},"2":{"name":"string.other.link.title.restructuredtext"},"3":{"name":"punctuation.definition.location.restructuredtext"},"4":{"name":"markup.underline.link.restructuredtext"},"5":{"name":"punctuation.definition.location.restructuredtext"},"6":{"name":"punctuation.definition.link.restructuredtext"}}},"literal":{"name":"markup.raw.restructuredtext","begin":"``","end":"``((?=[^`\\w\\d])|$)","beginCaptures":{"0":{"name":"punctuation.definition.raw.begin.restructuredtext"}},"endCaptures":{"0":{"name":"punctuation.definition.raw.end.restructuredtext"}}},"math-inline":{"name":"markup.other.command.restructuredtext","contentName":"markup.math.inline.restructuredtext","begin":"(:)(math)(:)(`)","end":"(`)","patterns":[{"include":"text.tex#math"}],"beginCaptures":{"1":{"name":"punctuation.definition.intepreted.restructuredtext"},"2":{"name":"entity.name.role.restructuredtext"},"3":{"name":"punctuation.definition.intepreted.restructuredtext"},"4":{"name":"punctuation.definition.intepreted.restructuredtext"}},"endCaptures":{"1":{"name":"punctuation.definition.intepreted.restructuredtext"}}},"raw-blocks":{"contentName":"meta.raw.block.restructuredtext","begin":"^(?!\\s*\\.\\.\\s\\w+)(\\s*)(.*)(::)$","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"name":"markup.raw.inner.restructuredtext","match":".+"}],"beginCaptures":{"2":{"patterns":[{"include":"#inlines"}]},"3":{"name":"punctuation.section.raw.restructuredtext"}}},"substitution":{"name":"support.variable.substitution.restructuredtext","match":"(?\u003c!\\\\)(\\|)[^|]+(?\u003c!\\\\)(\\|_{0,2})","captures":{"1":{"name":"punctuation.definition.substitution.restructuredtext"},"2":{"name":"punctuation.definition.substitution.restructuredtext"}}},"substitution-definition":{"patterns":[{"name":"meta.substitution-definition.image.restructuredtext","begin":"^(\\s*)(\\.\\.)\\s(\\|)(?=\\S)([^\\|]+)((?\u003c=\\S)\\|)\\s+(image)(::)\\s*(\\S+)","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"#image-options"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"punctuation.definition.substitution.start.restructuredtext"},"4":{"name":"entity.name.substitution.restructuredtext"},"5":{"name":"punctuation.definition.substitution.end.restructuredtext"},"6":{"name":"support.directive.restructuredtext"},"7":{"name":"punctuation.separator.key-value.restructuredtext"},"8":{"patterns":[{"include":"#uri"}]}}},{"name":"meta.substitution-definition.restructuredtext","begin":"^(\\s*)(\\.\\.)\\s(\\|)(?=\\S)([^\\|]+)((?\u003c=\\S)\\|)\\s+(\\S+.*(?=::))(::)(.*)","end":"^(?!\\s*$|\\1[ \\t]+\\S)","patterns":[{"include":"#directive-options"}],"beginCaptures":{"2":{"name":"punctuation.definition.directive.restructuredtext"},"3":{"name":"punctuation.definition.substitution.start.restructuredtext"},"4":{"name":"entity.name.substitution.restructuredtext"},"5":{"name":"punctuation.definition.substitution.end.restructuredtext"},"6":{"name":"support.directive.restructuredtext"},"7":{"name":"punctuation.separator.key-value.restructuredtext"},"8":{"name":"string.unquoted.substitution.data.restructuredtext"}}}]},"table-borders":{"patterns":[{"contentName":"punctuation.definition.table.row-divider.restructuredtext","begin":"\\+(?=-+(?=\\+|$))","end":"(?=\\+(?=-)|$)|\\+(?=\\s|$)","beginCaptures":{"0":{"name":"punctuation.definition.table.joint.restructuredtext"}},"endCaptures":{"0":{"name":"punctuation.definition.table.joint.restructuredtext"}}},{"contentName":"punctuation.definition.table.header.row-divider.restructuredtext","begin":"\\+(?==+(?=\\+|$))","end":"(?=\\+(?==)|$)|\\+\\s*$","beginCaptures":{"0":{"name":"punctuation.definition.table.joint.restructuredtext"}},"endCaptures":{"0":{"name":"punctuation.definition.table.joint.restructuredtext"}}},{"name":"punctuation.definition.table.header.column-divider.restructuredtext","match":"\\|"}]},"tables":{"patterns":[{"name":"meta.table.grid-table.restructuredtext","contentName":"markup.other.table.restructuredtext","begin":"(?=((\\+-[+-]+))|((\\+=[+=]+))\\s*$)","end":"^\\s*$","patterns":[{"include":"#table-borders"},{"include":"#inlines"}]},{"name":"punctuation.definition.table.simple-divider.restructuredtext","match":"(?x)\n^\\s*-{2,}\\s+-{2,}(?:\\s+-{2,})*\\s*$\n|\n^\\s*={2,}\\s+={2,}(?:\\s+={2,})*\\s*$"}]},"tag-name":{"name":"entity.name.tag.restructuredtext","match":"(:)[A-Za-z][\\w\\s=.-]*(:)","captures":{"1":{"name":"punctuation.definition.field.restructuredtext"},"2":{"name":"punctuation.definition.field.restructuredtext"}}},"uri":{"name":"string.other.uri.restructuredtext","match":"\\S+","captures":{"0":{"name":"markup.link.underline.restructuredtext"}}}}}