{"name":"WebVTT","scopeName":"text.vtt","patterns":[{"name":"meta.file-body.vtt","begin":"\\A?(WEBVTT)(?=$|[ \\t])","end":"(?=A)B","patterns":[{"name":"meta.header.vtt","contentName":"comment.line.ignored.vtt","begin":"\\G","end":"^[ \\t]*$","patterns":[{"include":"#setting"}]},{"include":"#main"}],"beginCaptures":{"1":{"name":"keyword.control.start-file.vtt"}}},{"include":"#main"}],"repository":{"badArrow":{"name":"invalid.illegal.syntax.unexpected-separator.vtt","match":"\\S*?--\u003e\\S*"},"charRef":{"patterns":[{"include":"text.html.basic#character-reference"}]},"class":{"patterns":[{"name":"support.constant.colour.foreground.$2.vtt","match":"(\\.)(black|blue|cyan|lime|magenta|red|white|yellow)(?=$|[\\s\u0026\u003c\u003e.])","captures":{"1":{"name":"punctuation.definition.entity.class.vtt"}}},{"name":"support.constant.colour.background.$2.vtt","match":"(\\.)bg_(black|blue|cyan|lime|magenta|red|white|yellow)(?=$|[\\s\u0026\u003c\u003e.])","captures":{"1":{"name":"punctuation.definition.entity.class.vtt"}}},{"name":"entity.other.attribute-name.class.vtt","match":"(\\.)[^\\s\u0026\u003c\u003e.]+","captures":{"1":{"name":"punctuation.definition.entity.class.vtt"}}}]},"comment":{"name":"comment.block.vtt","begin":"^NOTE(?=$|\\s)","end":"^[ \\t]*$","beginCaptures":{"0":{"name":"storage.type.start-comment.vtt"}}},"cue":{"name":"meta.cue.block.vtt","begin":"(?x)\n(?=\n\t^\n\t(?:\\d{2,}:)?\\d{2}:\\d{2}\\.\\d{3} # Start time\n\t[ \\t]+ --\u003e [ \\t]+ # Separator\n\t(?:\\d{2,}:)?\\d{2}:\\d{2}\\.\\d{3} # End time\n\t(?:$|[ \\t])\n)\n|\n# Cue identifier\n^((?!.*?--\u003e)[^\\r\\n]+)$","end":"^[ \\t]*$","patterns":[{"include":"#cueTimings"},{"include":"#cuePayload"}],"beginCaptures":{"1":{"name":"entity.name.cue.vtt"}}},"cueComponents":{"patterns":[{"include":"#cueSpan"},{"include":"#cueTimestamp"},{"include":"#cueDash"},{"include":"#charRef"}]},"cueDash":{"name":"markup.quote.quotation-dash.vtt","match":"(?:^|\\G)([-–—―⸺⸻〜〰︱︲﹘﹣-])","captures":{"1":{"name":"punctuation.section.quote.vtt"}}},"cuePayload":{"name":"meta.cue.payload.vtt","begin":"^(?=[ \\t]*\\S)","end":"(?=^[ \\t]*$)(?!\\G)","patterns":[{"include":"#cueComponents"}]},"cueSettings":{"name":"meta.cue.settings-list.vtt","begin":"(?\u003c=[ \\t]|^)(?!$)","end":"$","patterns":[{"include":"#badArrow"},{"include":"#setting"}]},"cueSpan":{"patterns":[{"name":"meta.span.class-span.vtt","begin":"(\u003c)(c)(?=$|\\s|/?\u003e|\\.)","end":"(?=^[ \\t]*$)|((\u003c/)(c)\\s*(\u003e))|(/\u003e)","patterns":[{"include":"#cueSpanStart"},{"include":"#cueSpanBody"}],"beginCaptures":{"0":{"name":"meta.tag.opening.vtt"},"1":{"name":"punctuation.definition.tag.begin.vtt"},"2":{"name":"entity.name.tag.localname.vtt"}},"endCaptures":{"1":{"name":"meta.tag.closing.vtt"},"2":{"name":"punctuation.definition.tag.begin.vtt"},"3":{"name":"entity.name.tag.localname.vtt"},"4":{"name":"punctuation.definition.tag.end.vtt"},"5":{"name":"punctuation.definition.tag.end.self-closing.vtt"}}},{"name":"meta.span.italics-span.vtt","begin":"(\u003c)(i)(?=$|\\s|/?\u003e|\\.)","end":"(?=^[ \\t]*$)|((\u003c/)(i)\\s*(\u003e))|(/\u003e)","patterns":[{"include":"#cueSpanStart"},{"name":"markup.italic.vtt","begin":"(?\u003c=\u003e)","end":"(?=\u003c/[A-Za-z_:]|^[ \\t]*$)","patterns":[{"include":"#cueComponents"}]}],"beginCaptures":{"0":{"name":"meta.tag.opening.vtt"},"1":{"name":"punctuation.definition.tag.begin.vtt"},"2":{"name":"entity.name.tag.localname.vtt"}},"endCaptures":{"1":{"name":"meta.tag.closing.vtt"},"2":{"name":"punctuation.definition.tag.begin.vtt"},"3":{"name":"entity.name.tag.localname.vtt"},"4":{"name":"punctuation.definition.tag.end.vtt"},"5":{"name":"punctuation.definition.tag.end.self-closing.vtt"}}},{"name":"meta.span.bold-span.vtt","begin":"(\u003c)(b)(?=$|\\s|/?\u003e|\\.)","end":"(?=^[ \\t]*$)|((\u003c/)(b)\\s*(\u003e))|(/\u003e)","patterns":[{"include":"#cueSpanStart"},{"name":"markup.bold.vtt","begin":"(?\u003c=\u003e)","end":"(?=\u003c/[A-Za-z_:]|^[ \\t]*$)","patterns":[{"include":"#cueComponents"}]}],"beginCaptures":{"0":{"name":"meta.tag.opening.vtt"},"1":{"name":"punctuation.definition.tag.begin.vtt"},"2":{"name":"entity.name.tag.localname.vtt"}},"endCaptures":{"1":{"name":"meta.tag.closing.vtt"},"2":{"name":"punctuation.definition.tag.begin.vtt"},"3":{"name":"entity.name.tag.localname.vtt"},"4":{"name":"punctuation.definition.tag.end.vtt"},"5":{"name":"punctuation.definition.tag.end.self-closing.vtt"}}},{"name":"meta.span.underline-span.vtt","begin":"(\u003c)(u)(?=$|\\s|/?\u003e|\\.)","end":"(?=^[ \\t]*$)|((\u003c/)(u)\\s*(\u003e))|(/\u003e)","patterns":[{"include":"#cueSpanStart"},{"name":"markup.underline.vtt","contentName":"string.other.link.vtt","begin":"(?\u003c=\u003e)","end":"(?=\u003c/[A-Za-z_:]|^[ \\t]*$)","patterns":[{"include":"#cueComponents"}]}],"beginCaptures":{"0":{"name":"meta.tag.opening.vtt"},"1":{"name":"punctuation.definition.tag.begin.vtt"},"2":{"name":"entity.name.tag.localname.vtt"}},"endCaptures":{"1":{"name":"meta.tag.closing.vtt"},"2":{"name":"punctuation.definition.tag.begin.vtt"},"3":{"name":"entity.name.tag.localname.vtt"},"4":{"name":"punctuation.definition.tag.end.vtt"},"5":{"name":"punctuation.definition.tag.end.self-closing.vtt"}}},{"name":"meta.span.ruby-span.vtt","begin":"(\u003c)(ruby)(?=$|\\s|/?\u003e|\\.)","end":"(?=^[ \\t]*$)|((\u003c/)(ruby)\\s*(\u003e))|(/\u003e)","patterns":[{"include":"#cueSpanStart"},{"include":"#cueSpanBody"}],"beginCaptures":{"0":{"name":"meta.tag.opening.vtt"},"1":{"name":"punctuation.definition.tag.begin.vtt"},"2":{"name":"entity.name.tag.localname.vtt"}},"endCaptures":{"1":{"name":"meta.tag.closing.vtt"},"2":{"name":"punctuation.definition.tag.begin.vtt"},"3":{"name":"entity.name.tag.localname.vtt"},"4":{"name":"punctuation.definition.tag.end.vtt"},"5":{"name":"punctuation.definition.tag.end.self-closing.vtt"}}},{"name":"meta.span.ruby-text-span.vtt","begin":"(\u003c)(rt)(?=$|\\s|/?\u003e|\\.)","end":"(?=^[ \\t]*$)|((\u003c/)(rt)\\s*(\u003e))|(/\u003e)|(?=\\s*\u003c/ruby\\s*\u003e)","patterns":[{"include":"#cueSpanStart"},{"include":"#cueSpanBody"}],"beginCaptures":{"0":{"name":"meta.tag.opening.vtt"},"1":{"name":"punctuation.definition.tag.begin.vtt"},"2":{"name":"entity.name.tag.localname.vtt"}},"endCaptures":{"1":{"name":"meta.tag.closing.vtt"},"2":{"name":"punctuation.definition.tag.begin.vtt"},"3":{"name":"entity.name.tag.localname.vtt"},"4":{"name":"punctuation.definition.tag.end.vtt"},"5":{"name":"punctuation.definition.tag.end.self-closing.vtt"}}},{"name":"meta.span.voice-span.vtt","begin":"(\u003c)(v)(?=$|\\s|/?\u003e|\\.)","end":"(?=^[ \\t]*$)|((\u003c/)(v)\\s*(\u003e))|(/\u003e)","patterns":[{"name":"meta.tag.opening.vtt","begin":"\\G(?!\\s*/\u003e)((?:\\.[^\\s\u0026\u003c\u003e.]+)*\\.?)?","end":"\u003e|(?=\\s*/\u003e|^[ \\t]*$)","patterns":[{"name":"meta.annotation.vtt","contentName":"entity.name.voice.vtt","begin":"(?:[ \\t]|^|\\G)(?=\\S)(?!\u003e|\u0026)","end":"(?=$|\u003e|\u0026|^[ \\t]*$)","patterns":[{"include":"#charRef"}]}],"beginCaptures":{"1":{"patterns":[{"include":"#class"}]}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.vtt"}}},{"include":"#cueSpanBody"}],"beginCaptures":{"0":{"name":"meta.tag.opening.vtt"},"1":{"name":"punctuation.definition.tag.begin.vtt"},"2":{"name":"entity.name.tag.localname.vtt"}},"endCaptures":{"1":{"name":"meta.tag.closing.vtt"},"2":{"name":"punctuation.definition.tag.begin.vtt"},"3":{"name":"entity.name.tag.localname.vtt"},"4":{"name":"punctuation.definition.tag.end.vtt"},"5":{"name":"punctuation.definition.tag.end.self-closing.vtt"}}},{"name":"meta.span.language-span.vtt","begin":"(\u003c)(lang)(?=$|\\s|/?\u003e|\\.)","end":"(?=^[ \\t]*$)|((\u003c/)(lang)\\s*(\u003e))|(/\u003e)","patterns":[{"name":"meta.tag.opening.vtt","begin":"\\G(?!\\s*/\u003e)((?:\\.[^\\s\u0026\u003c\u003e.]+)*\\.?)?","end":"\u003e|(?=\\s*/\u003e|^[ \\t]*$)","patterns":[{"name":"meta.annotation.vtt","contentName":"constant.language.locale.bcp47.vtt","begin":"(?:[ \\t]|^|\\G)(?=\\S)(?!\u003e|\u0026)","end":"(?=$|\u003e|\u0026|^[ \\t]*$)","patterns":[{"include":"#charRef"}]}],"beginCaptures":{"1":{"patterns":[{"include":"#class"}]}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.vtt"}}},{"include":"#cueSpanBody"}],"beginCaptures":{"0":{"name":"meta.tag.opening.vtt"},"1":{"name":"punctuation.definition.tag.begin.vtt"},"2":{"name":"entity.name.tag.localname.vtt"}},"endCaptures":{"1":{"name":"meta.tag.closing.vtt"},"2":{"name":"punctuation.definition.tag.begin.vtt"},"3":{"name":"entity.name.tag.localname.vtt"},"4":{"name":"punctuation.definition.tag.end.vtt"},"5":{"name":"punctuation.definition.tag.end.self-closing.vtt"}}},{"name":"meta.span.$2-span.vtt","begin":"(\u003c)([A-Za-z_:][-\\w:]*)(?=$|\\s|/?\u003e|\\.)","end":"(?=^[ \\t]*$)|((\u003c/)(\\2)\\s*(\u003e))|(/\u003e)","patterns":[{"name":"meta.tag.opening.vtt","begin":"\\G(?!\\s*/\u003e)((?:\\.[^\\s\u0026\u003c\u003e.]+)*\\.?)?","end":"\u003e|(?=\\s*/\u003e|^[ \\t]*$)","patterns":[{"name":"meta.annotation.vtt","contentName":"string.unquoted.annotation.vtt","begin":"(?:[ \\t]|^|\\G)(?=\\S)(?!\u003e|\u0026)","end":"(?=$|\u003e|\u0026|^[ \\t]*$)","patterns":[{"include":"#charRef"}]}],"beginCaptures":{"1":{"patterns":[{"include":"#class"}]}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.vtt"}}},{"include":"#cueSpanBody"}],"beginCaptures":{"0":{"name":"meta.tag.opening.vtt"},"1":{"name":"punctuation.definition.tag.begin.vtt"},"2":{"name":"entity.name.tag.localname.vtt"}},"endCaptures":{"1":{"name":"meta.tag.closing.vtt"},"2":{"name":"punctuation.definition.tag.begin.vtt"},"3":{"name":"entity.name.tag.localname.vtt"},"4":{"name":"punctuation.definition.tag.end.vtt"},"5":{"name":"punctuation.definition.tag.end.self-closing.vtt"}}}]},"cueSpanBody":{"name":"meta.content.vtt","begin":"(?\u003c=\u003e)","end":"(?=\u003c/[A-Za-z_:]|^[ \\t]*$)","patterns":[{"include":"#cueComponents"}]},"cueSpanStart":{"name":"meta.tag.opening.vtt","contentName":"invalid.illegal.unexpected-annotation.vtt","begin":"\\G(?!\\s*/\u003e)((?:\\.[^\\s\u0026\u003c\u003e.]+)*\\.?)?","end":"\u003e|(?=\\s*/\u003e|^[ \\t]*$)","patterns":[{"include":"#charRef"}],"beginCaptures":{"1":{"patterns":[{"include":"#class"}]}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.vtt"}}},"cueTimestamp":{"name":"constant.other.cue-timestamp.vtt","match":"(\u003c)((?:\\d{2,}:)?\\d{2}:\\d{2}\\.\\d{3})(\u003e)","captures":{"1":{"name":"punctuation.definition.timestamp.begin.vtt"},"2":{"patterns":[{"include":"#timestamp"}]},"3":{"name":"punctuation.definition.timestamp.end.vtt"}}},"cueTimings":{"name":"meta.cue.timings.vtt","begin":"(?x) (?:^|\\G)\n((?:\\d{2,}:)?\\d{2}:\\d{2}\\.\\d{3}) # Start time\n[ \\t]+ (--\u003e) [ \\t]+ # Separator\n((?:\\d{2,}:)?\\d{2}:\\d{2}\\.\\d{3}) # End time\n(?=$|[ \\t]) [ \\t]* # Gap before “#cueSettings”","end":"$","patterns":[{"include":"#cueSettings"}],"beginCaptures":{"1":{"name":"meta.start-time.vtt","patterns":[{"include":"#timestamp"}]},"2":{"name":"keyword.operator.timespan.vtt"},"3":{"name":"meta.end-time.vtt","patterns":[{"include":"#timestamp"}]}}},"main":{"patterns":[{"include":"#comment"},{"include":"#region"},{"include":"#style"},{"include":"#cue"}]},"region":{"name":"meta.region-definition.block.vtt","begin":"^(REGION)[ \\t]*$","end":"^[ \\t]*$","patterns":[{"name":"meta.setting.with-value.vtt","match":"^(id)(:)(?:(.*?--\u003e.*?)|(\\S+))","captures":{"1":{"name":"variable.assignment.setting-name.vtt"},"2":{"name":"keyword.operator.assignment.key-value.colon.vtt"},"3":{"patterns":[{"include":"#badArrow"}]},"4":{"name":"entity.name.region.vtt"}}},{"include":"#setting"}],"beginCaptures":{"1":{"name":"storage.type.region.vtt"}}},"setting":{"name":"meta.setting.generic.vtt","begin":"([^\\s:]+?)(:)","end":"(?!\\G)","patterns":[{"begin":"\\G(?=[ \\t]*\\S)","end":"(?!\\G)(?=\\s|$)","patterns":[{"match":"(?\u003c=scroll:)\\G([ \\t]*)(up)(?=$|\\s)","captures":{"1":{"name":"punctuation.whitespace.inline.vtt"},"2":{"name":"constant.language.scroll-setting.vtt"}}},{"match":"(?\u003c=vertical:)\\G([ \\t]*)(rl|lr)(?=$|\\s)","captures":{"1":{"name":"punctuation.whitespace.inline.vtt"},"2":{"name":"constant.language.vertical-setting.vtt"}}},{"match":"(?\u003c=line:)\\G([ \\t]*)(start|center|end)(?=$|\\s)","captures":{"1":{"name":"punctuation.whitespace.inline.vtt"},"2":{"name":"constant.language.line-setting.vtt"}}},{"match":"(?\u003c=position:)\\G([ \\t]*)([0-9]+%,)(center|line-left|line-right)(?=$|\\s)","captures":{"1":{"name":"punctuation.whitespace.inline.vtt"},"2":{"patterns":[{"include":"#settingValue"}]},"3":{"name":"constant.language.position-setting.vtt"}}},{"match":"(?\u003c=align:)\\G([ \\t]*)(center|end|left|right|start)(?=$|\\s)","captures":{"1":{"name":"punctuation.whitespace.inline.vtt"},"2":{"patterns":[{"include":"#settingValue"}]},"3":{"name":"constant.language.align-setting.vtt"}}},{"include":"#settingValue"}]}],"beginCaptures":{"1":{"name":"variable.assignment.setting-name.vtt"},"2":{"name":"keyword.operator.assignment.key-value.colon.vtt"}}},"settingValue":{"patterns":[{"name":"constant.numeric.percentage.vtt","match":"[0-9]+(?:\\.[0-9]+)?(%)","captures":{"1":{"name":"punctuation.definition.percentage.vtt"}}},{"name":"constant.numeric.integer.int.vtt","match":"[0-9]+\\b(?!%|\\.[0-9])"},{"name":"constant.language.auto.vtt","match":"\\bauto\\b(?=$|\\s|,)"},{"name":"punctuation.separator.delimiter.comma.vtt","match":","},{"include":"#badArrow"},{"name":"constant.other.setting-value.vtt","match":".+"}]},"style":{"name":"meta.style.block.vtt","contentName":"source.embedded.css","begin":"^(STYLE)[ \\t]*$","end":"^[ \\t]*$","patterns":[{"include":"source.css"}],"beginCaptures":{"1":{"name":"storage.type.style.vtt"}}},"timestamp":{"name":"meta.timestamp.vtt","match":"(?x)\n(?:(\\d{2,})(:))? # Hours (≥ 00)\n(?:([0-5]\\d)|(\\d{2}))(:) # Minutes (00-59)\n(?:([0-5]\\d)|(\\d{2}))(\\.) # Seconds (00-59)\n(\\d{3}) # Milliseconds (000-999)","captures":{"1":{"name":"constant.numeric.timestamp.unit.hour.vtt"},"2":{"patterns":[{"include":"#timestampColon"}]},"3":{"name":"constant.numeric.timestamp.unit.minute.vtt"},"4":{"name":"invalid.illegal.value.out-of-range.vtt"},"5":{"patterns":[{"include":"#timestampColon"}]},"6":{"name":"constant.numeric.timestamp.unit.second.vtt"},"7":{"name":"invalid.illegal.value.out-of-range.vtt"},"8":{"patterns":[{"include":"#timestampDecimal"}]},"9":{"name":"constant.numeric.timestamp.unit.millisecond.vtt"}}},"timestampColon":{"name":"meta.separator.colon.vtt","match":":","captures":{"0":{"name":"punctuation.separator.delimiter.vtt"}}},"timestampDecimal":{"name":"meta.separator.decimal.fraction.radix-point.vtt","match":"\\.","captures":{"0":{"name":"punctuation.separator.decimal.vtt"}}}}}