Files
code_tool_fly/VSCode-win32-x64-1.74.0/resources/app/extensions/restructuredtext/syntaxes/rst.tmLanguage.json
T

1 line
9.3 KiB
JSON
Raw Normal View History

2025-05-09 16:55:09 +08:00
{"information_for_contributors":["This file has been converted from https://github.com/trond-snekvik/vscode-rst/blob/master/syntaxes/rst.tmLanguage.json","If you want to provide a fix or improvement, please create a pull request against the original repository.","Once accepted there, we are happy to receive an update request."],"version":"https://github.com/trond-snekvik/vscode-rst/commit/f0fe19ffde6509be52ad9267a57e1b3df665f072","scopeName":"source.rst","patterns":[{"include":"#body"}],"repository":{"body":{"patterns":[{"include":"#title"},{"include":"#inline-markup"},{"include":"#anchor"},{"include":"#line-block"},{"include":"#replace-include"},{"include":"#footnote"},{"include":"#substitution"},{"include":"#blocks"},{"include":"#table"},{"include":"#simple-table"},{"include":"#options-list"}]},"title":{"match":"^(\\*{3,}|#{3,}|\\={3,}|~{3,}|\\+{3,}|-{3,}|`{3,}|\\^{3,}|:{3,}|\"{3,}|_{3,}|'{3,})$","name":"markup.heading"},"inline-markup":{"patterns":[{"include":"#escaped"},{"include":"#ignore"},{"include":"#ref"},{"include":"#literal"},{"include":"#monospaced"},{"include":"#citation"},{"include":"#bold"},{"include":"#italic"},{"include":"#list"},{"include":"#macro"},{"include":"#reference"},{"include":"#footnote-ref"}]},"ignore":{"patterns":[{"match":"'[`*]+'"},{"match":"<[`*]+>"},{"match":"{[`*]+}"},{"match":"\\([`*]+\\)"},{"match":"\\[[`*]+\\]"},{"match":"\"[`*]+\""}]},"table":{"begin":"^\\s*\\+[=+-]+\\+\\s*$","end":"^(?![+|])","beginCaptures":{"0":{"name":"keyword.control.table"}},"patterns":[{"match":"[=+|-]","name":"keyword.control.table"}]},"simple-table":{"match":"^[=\\s]+$","name":"keyword.control.table"},"ref":{"begin":"(:ref:)`","end":"`|^\\s*$","name":"entity.name.tag","beginCaptures":{"1":{"name":"keyword.control"}},"patterns":[{"match":"<.*?>","name":"markup.underline.link"}]},"reference":{"match":"[\\w-]*[a-zA-Z\\d-]__?\\b","name":"entity.name.tag"},"macro":{"match":"\\|[^\\|]+\\|","name":"entity.name.tag"},"literal":{"match":"(:\\S+:)(`.*?`\\\\?)","captures":{"1":{"name":"keyword.control"},"2":{"name":"entity.name.tag"}}},"monospaced":{"begin":"(?<=[\\s\"'(\\[{<]|^)``[^\\s`]","end":"``|^\\s*$","name":"string.interpolated"},"citation":{"begin":"(?<=[\\s\"'(\\[{<]|^)`[^\\s`]","end":"`_{,2}|^\\s*$","name":"entity.name.tag","applyEndPatternLast":0},"bold":{"begin":"(?<=[\\s\"'(\\[{<]|^)\\*{2}[^\\s*]","end":"\\*{2}|^\\s*$","name":"markup.bold"},"italic":{"begin":"(?<=[\\s\"'(\\[{<]|^)\\*[^\\s*]","end":"\\*|^\\s*$","name":"markup.italic"},"escaped":{"match":"\\\\.","name":"constant.character.escape"},"list":{"match":"^\\s*(\\d+\\.|\\* -|[a-zA-Z#]\\.|[iIvVxXmMcC]+\\.|\\(\\d+\\)|\\d+\\)|[*+-])\\s+","name":"keyword.control"},"line-block":{"match":"^\\|\\s+","name":"keyword.control"},"raw-html":{"begin":"^(\\s*)(\\.{2}\\s+raw\\s*::)\\s+(html)\\s*$","while":"^\\1(?=\\s)|^\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"3":{"name":"variable.parameter.html"}},"patterns":[{"include":"#block-param"},{"include":"text.html.derivative"}]},"anchor":{"match":"^\\.{2}\\s+(_[^:]+:)\\s*","name":"entity.name.tag.anchor"},"replace-include":{"match":"^\\s*(\\.{2})\\s+(\\|[^\\|]+\\|)\\s+(replace::)","captures":{"1":{"name":"keyword.control"},"2":{"name":"entity.name.tag"},"3":{"name":"keyword.control"}}},"footnote":{"match":"^\\s*\\.{2}\\s+\\[(?:[\\w\\.-]+|[#*]|#\\w+)\\]\\s+","name":"entity.name.tag"},"footnote-ref":{"match":"\\[(?:[\\w\\.-]+|[#*])\\]_","name":"entity.name.tag"},"substitution":{"match":"^\\.{2}\\s*\\|([^|]+)\\|","name":"entity.name.tag"},"options-list":{"match":"^((?:-\\w|--[\\w-]+|/\\w+)(?:,? ?[\\w-]+)*)(?: |\\t|$)","name":"variable.parameter"},"blocks":{"patterns":[{"include":"#domains"},{"include":"#doctest"},{"include":"#code-block-cpp"},{"include":"#code-block-py"},{"include":"#code-block-console"},{"include":"#code-block-javascript"},{"include":"#code-block-yaml"},{"include":"#code-block-cmake"},{"include":"#code-block-kconfig"},{"include":"#code-block-ruby"},{"include":"#code-block-dts"},{"include":"#code-block"},{"include":"#doctest-block"},{"include":"#raw-html"},{"include":"#block"},{"include":"#