[ {"type":"Keyword","value":"WEBVTT"}, {"type":"Text","value":" Test file with invalid WebVTT code\n\n"}, {"type":"Error","value":"NOTE Comments may not contain the string \"dash-dash-greater-than\"\n--\u003e\n\n"}, {"type":"Comment","value":"NOTE The REGION keyword has to be on its own line\n\n"}, {"type":"Error","value":"REGION id:bill\n\n"}, {"type":"Comment","value":"NOTE Some invalid region definition values\n\n"}, {"type":"Keyword","value":"REGION"}, {"type":"Text","value":"\n"}, {"type":"Keyword","value":"id"}, {"type":"Punctuation","value":":"}, {"type":"Literal","value":"bill"}, {"type":"Text","value":" "}, {"type":"Error","value":"with"}, {"type":"Text","value":" "}, {"type":"Error","value":"spaces"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"id:--\u003e"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"width:40"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"lines:up"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"regionanchor:100%"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"regionanchor:100"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"regionanchor:word"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"regionanchor:100,100"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"regionanchor:10%,10"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"regionanchor:10,10%"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"viewportanchor:100%"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"viewportanchor:100"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"viewportanchor:word"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"viewportanchor:100,100"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"viewportanchor:10%,10"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"viewportanchor:10,10%"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"scroll:down"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"scroll:"}, {"type":"Text","value":" "}, {"type":"Error","value":"up"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"scroll:100%"}, {"type":"Text","value":"\n\n"}, {"type":"Comment","value":"NOTE Region definition values with invalid decimals\n\n"}, {"type":"Keyword","value":"REGION"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"width:40,5%"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"regionanchor:0,123%,50,123%"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"viewportanchor:10,123%,90,123%"}, {"type":"Text","value":"\n\n"}, {"type":"Comment","value":"NOTE Invalid region definition values with percentages above 100\n\n"}, {"type":"Keyword","value":"REGION"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"width:140.5%"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"regionanchor:123%,123%"}, {"type":"Text","value":"\n"}, {"type":"Error","value":"viewportanchor:123%,123%"}, {"type":"Text","value":"\n\n"}, {"type":"Keyword","value":"STYLE"}, {"type":"Text","value":"\n"}, {"type":"Punctuation","value":"::"}, {"type":"NameDecorator","value":"cue"}, {"type":"Operator","value":"("}, {"type":"NameTag","value":"v"}, {"type":"Operator","value":"["}, {"type":"NameTag","value":"voice"}, {"type":"Operator","value":"="}, {"type":"LiteralStringDouble","value":"\"Mary\""}, {"type":"Operator","value":"])"}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"{"}, {"type":"Text","value":" "}, {"type":"Keyword","value":"color"}, {"type":"Punctuation","value":":"}, {"type":"Text","value":" "}, {"type":"KeywordConstant","value":"lime"}, {"type":"Text","value":" "}, {"type":"Punctuation","value":"}"}, {"type":"Text","value":"\n"}, {"type":"Comment","value":"/* A true blank line ends the style block. */"}, {"type":"Text","value":"\n\n"}, {"type":"Error","value":"::cue(v[voice=\"Mary\"]) { color: lime } /* This should be lexed as invalid raw text. */\n\n"}, {"type":"Comment","value":"NOTE The STYLE keyword needs to be on its own line.\n\n"}, {"type":"Error","value":"STYLE /* This is not allowed.*/\n\n"}, {"type":"Comment","value":"NOTE Style blocks must not contain the string dash-dash-greater-than.\n\n"}, {"type":"Error","value":"STYLE\n--\u003e\n\n"}, {"type":"Comment","value":"NOTE Here are some invalid cues.\n\n"}, {"type":"Error","value":"IDs may not contain \"-"}, {"type":"Name","value":"-\u003e\""}, {"type":"Text","value":"\n"}, {"type":"LiteralDate","value":"00:00.000"}, {"type":"Text","value":" "}, {"type":"Operator","value":"--\u003e"}, {"type":"Text","value":" "}, {"type":"LiteralDate","value":"00:01.000"}, {"type":"Text","value":"\nA cue\n\n"}, {"type":"Error","value":"IDs may not contain\n"}, {"type":"Name","value":"line breaks"}, {"type":"Text","value":"\n"}, {"type":"LiteralDate","value":"00:00.000"}, {"type":"Text","value":" "}, {"type":"Operator","value":"--\u003e"}, {"type":"Text","value":" "}, {"type":"LiteralDate","value":"00:01.000"}, {"type":"Text","value":"\nA cue\n\n"}, {"type":"Error","value":"00:60.000 --\u003e 00:61.000\nA cue in the 61st second of the minute.\n\n60:00.000 --\u003e 61:00.000\nA cue in the 61st minute of the hour second.\n\n00:01.000 -\u003e 00:02.000\nA cue with an incorrect arrow.\n"}, {"type":"Text","value":"\n"}, {"type":"LiteralDate","value":"00:01.000"}, {"type":"Text","value":" "}, {"type":"Operator","value":"--\u003e"}, {"type":"Text","value":" "}, {"type":"LiteralDate","value":"00:02.000"}, {"type":"Text","value":"\nIncorrect cues don't prevent lexing of subsequent cues.\n\n"}, {"type":"Error","value":"00:01.00 --\u003e 00:02.00\nA cue with incorrect milliseconds\n"}, {"type":"Text","value":"\n"}, {"type":"LiteralDate","value":"00:01.000"}, {"type":"Text","value":" "}, {"type":"Operator","value":"--\u003e"}, {"type":"Text","value":" "}, {"type":"LiteralDate","value":"00:02.000"}, {"type":"Text","value":"\nDisallowed characters in the classes.\n"}, {"type":"Punctuation","value":"\u003c"}, {"type":"NameTag","value":"c"}, {"type":"Punctuation","value":"."}, {"type":"NameTag","value":"cl"}, {"type":"Error","value":"\tass"}, {"type":"Punctuation","value":"\u003e"}, {"type":"Text","value":"Test"}, {"type":"Punctuation","value":"\u003c/"}, {"type":"NameTag","value":"c"}, {"type":"Punctuation","value":"\u003e"}, {"type":"Text","value":"\n"}, {"type":"Punctuation","value":"\u003c"}, {"type":"NameTag","value":"i"}, {"type":"Punctuation","value":"."}, {"type":"NameTag","value":"cl"}, {"type":"Error","value":" ass"}, {"type":"Punctuation","value":"\u003e"}, {"type":"Text","value":"Test"}, {"type":"Punctuation","value":"\u003c/"}, {"type":"NameTag","value":"i"}, {"type":"Punctuation","value":"\u003e"}, {"type":"Text","value":"\n"}, {"type":"Punctuation","value":"\u003c"}, {"type":"NameTag","value":"b"}, {"type":"Punctuation","value":"."}, {"type":"NameTag","value":"cl"}, {"type":"Error","value":"\nass\u003eTest\u003c/b\u003e\n\u003cu.cl\u0026ass\u003eTest\u003c/u\u003e\n\u003cu. class\u003eTest\u003c/u\u003e\n\u003cu .class\u003eTest\u003c/u\u003e\n\u003ci.cl\u003cass\u003eTest\u003c/i\u003e\n\u003ci.cl.ass\u003eTest\u003c/i\u003e\n"}, {"type":"Text","value":"\n"}, {"type":"LiteralDate","value":"00:01.000"}, {"type":"Text","value":" "}, {"type":"Operator","value":"--\u003e"}, {"type":"Text","value":" "}, {"type":"LiteralDate","value":"00:02.000"}, {"type":"Text","value":"\nDisallowed characters in the annotations.\n"}, {"type":"Punctuation","value":"\u003c"}, {"type":"NameTag","value":"v"}, {"type":"Text","value":" Neil deGrasse"}, {"type":"Error","value":"\u0026Tyson"}, {"type":"Punctuation","value":"\u003e"}, {"type":"Text","value":"Test\n"}, {"type":"Punctuation","value":"\u003c"}, {"type":"NameTag","value":"v"}, {"type":"Text","value":" Neil deGrasse"}, {"type":"Punctuation","value":"\u003e"}, {"type":"Text","value":"Tyson\u003eTest\n\n"}, {"type":"LiteralDate","value":"00:01.000"}, {"type":"Text","value":" "}, {"type":"Operator","value":"--\u003e"}, {"type":"Text","value":" "}, {"type":"LiteralDate","value":"00:02.000"}, {"type":"Text","value":"\nA cue with an unknown span: "}, {"type":"Error","value":"\u003cstrong"}, {"type":"Punctuation","value":"\u003e"}, {"type":"Text","value":"Test"}, {"type":"Error","value":"\u003c/strong"}, {"type":"Punctuation","value":"\u003e"}, {"type":"Text","value":".\n\n"}, {"type":"LiteralDate","value":"00:01.000"}, {"type":"Text","value":" "}, {"type":"Operator","value":"--\u003e"}, {"type":"Text","value":" "}, {"type":"LiteralDate","value":"00:02.000"}, {"type":"Text","value":"\nA cue with incorrect end tags:\n"}, {"type":"Punctuation","value":"\u003c"}, {"type":"NameTag","value":"i"}, {"type":"Punctuation","value":"\u003e"}, {"type":"Text","value":"Test"}, {"type":"Error","value":"\u003c /i"}, {"type":"Punctuation","value":"\u003e"}, {"type":"Text","value":".\n"}, {"type":"Punctuation","value":"\u003c"}, {"type":"NameTag","value":"i"}, {"type":"Punctuation","value":"\u003e"}, {"type":"Text","value":"Test"}, {"type":"Error","value":"\u003c/ i"}, {"type":"Punctuation","value":"\u003e"}, {"type":"Text","value":".\n"}, {"type":"Punctuation","value":"\u003c"}, {"type":"NameTag","value":"i"}, {"type":"Punctuation","value":"\u003e"}, {"type":"Text","value":"Test"}, {"type":"Punctuation","value":"\u003c/"}, {"type":"NameTag","value":"i"}, {"type":"Error","value":" "}, {"type":"Punctuation","value":"\u003e"}, {"type":"Text","value":".\n\n"}, {"type":"LiteralDate","value":"00:01.000"}, {"type":"Text","value":" "}, {"type":"Operator","value":"--\u003e"}, {"type":"Text","value":" "}, {"type":"LiteralDate","value":"00:02.000"}, {"type":"Text","value":"\nA cue with annotations on annotation-less spans: "}, {"type":"Punctuation","value":"\u003c"}, {"type":"NameTag","value":"b"}, {"type":"Punctuation","value":"."}, {"type":"NameTag","value":"class"}, {"type":"Error","value":" annotation"}, {"type":"Punctuation","value":"\u003e"}, {"type":"Text","value":"Span content"}, {"type":"Punctuation","value":"\u003c/"}, {"type":"NameTag","value":"b"}, {"type":"Punctuation","value":"\u003e"}, {"type":"Text","value":"\n\n"}, {"type":"LiteralDate","value":"00:01.000"}, {"type":"Text","value":" "}, {"type":"Operator","value":"--\u003e"}, {"type":"Text","value":" "}, {"type":"LiteralDate","value":"00:02.000"}, {"type":"Text","value":"\nA cue with missing annotations on spans that mandate annotations: "}, {"type":"Punctuation","value":"\u003c"}, {"type":"NameTag","value":"v"}, {"type":"Punctuation","value":"."}, {"type":"NameTag","value":"class"}, {"type":"Error","value":"\u003eSpan"}, {"type":"Text","value":" content\u003c/v"}, {"type":"Punctuation","value":"\u003e"}, {"type":"Text","value":"\n\n"}, {"type":"LiteralDate","value":"02:00.000"}, {"type":"Text","value":" "}, {"type":"Operator","value":"--\u003e"}, {"type":"Text","value":" "}, {"type":"LiteralDate","value":"02:05.000"}, {"type":"Text","value":" "}, {"type":"Keyword","value":"vertical"}, {"type":"Punctuation","value":":"}, {"type":"KeywordConstant","value":"rl"}, {"type":"Error","value":"r"}, {"type":"Text","value":" "}, {"type":"Keyword","value":"line"}, {"type":"Punctuation","value":":"}, {"type":"Literal","value":"-33"}, {"type":"Error","value":"%"}, {"type":"Text","value":" "}, {"type":"Keyword","value":"position"}, {"type":"Punctuation","value":":"}, {"type":"Keyword","value":"line"}, {"type":"Error","value":"-right"}, {"type":"Text","value":" "}, {"type":"Keyword","value":"size"}, {"type":"Punctuation","value":":"}, {"type":"Error","value":"big"}, {"type":"Text","value":" "}, {"type":"Keyword","value":"align"}, {"type":"Punctuation","value":":"}, {"type":"KeywordConstant","value":"end"}, {"type":"Text","value":" "}, {"type":"Keyword","value":"region"}, {"type":"Punctuation","value":":"}, {"type":"Text","value":" "}, {"type":"Error","value":"fred"}, {"type":"Text","value":"\nInvalid cue settings\n\n"}, {"type":"LiteralDate","value":"02:00.000"}, {"type":"Text","value":" "}, {"type":"Operator","value":"--\u003e"}, {"type":"Text","value":" "}, {"type":"LiteralDate","value":"02:05.000"}, {"type":"Text","value":" "}, {"type":"Keyword","value":"line"}, {"type":"Punctuation","value":":"}, {"type":"Literal","value":"133"}, {"type":"Error","value":"%,start"}, {"type":"Text","value":" "}, {"type":"Keyword","value":"position"}, {"type":"Punctuation","value":":"}, {"type":"Literal","value":"133"}, {"type":"Error","value":"%,"}, {"type":"Keyword","value":"line"}, {"type":"Error","value":"-right"}, {"type":"Text","value":" "}, {"type":"Keyword","value":"size"}, {"type":"Punctuation","value":":"}, {"type":"Error","value":"133%"}, {"type":"Text","value":"\nCue settings with percentages above 100.\n\n"}, {"type":"LiteralDate","value":"02:00.000"}, {"type":"Text","value":" "}, {"type":"Operator","value":"--\u003e"}, {"type":"Text","value":" "}, {"type":"LiteralDate","value":"02:05.000"}, {"type":"Text","value":"\nCue settings with incorrect character references.\n"}, {"type":"Error","value":"\u0026"}, {"type":"Text","value":"#8220character references\u00268220;.\n"} ]