chroma/lexers/testdata/org.expected
2025-03-22 20:46:00 +13:00

376 lines
16 KiB
Org Mode

[
{"type":"Comment","value":"# -*- org -*-"},
{"type":"Text","value":"\n"},
{"type":"CommentSpecial","value":"#+title"},
{"type":"Comment","value":": Single Post with TOML front matter"},
{"type":"Text","value":"\n"},
{"type":"CommentSpecial","value":"#+author"},
{"type":"Comment","value":":"},
{"type":"Text","value":"\n"},
{"type":"CommentSpecial","value":"#+date"},
{"type":"Comment","value":": 2017-07-20"},
{"type":"Text","value":"\n"},
{"type":"CommentSpecial","value":"#+options"},
{"type":"Comment","value":": creator:t toc:2"},
{"type":"Text","value":"\n\n"},
{"type":"CommentSpecial","value":"#+hugo_base_dir"},
{"type":"Comment","value":": ../../"},
{"type":"Text","value":"\n"},
{"type":"CommentSpecial","value":"#+hugo_categories"},
{"type":"Comment","value":": cat1 cat2"},
{"type":"Text","value":"\n"},
{"type":"CommentSpecial","value":"#+hugo_menu"},
{"type":"Comment","value":": :menu \"foo\" :weight 10 :parent main :identifier single-toml"},
{"type":"Text","value":"\n"},
{"type":"CommentSpecial","value":"#+description"},
{"type":"Comment","value":": Some description for this post."},
{"type":"Text","value":"\n\nThis is a single post. You do not need to set the "},
{"type":"NameClass","value":"=EXPORT_FILE_NAME="},
{"type":"Text","value":"\nproperty in here. But then you also lose the tag and property\ninheritance Org awesomeness.\n\nline one "},
{"type":"Operator","value":"\\\\"},
{"type":"Text","value":"\nline two\n\n"},
{"type":"GenericStrong","value":"*bold*"},
{"type":"Text","value":" "},
{"type":"GenericEmph","value":"/italics/"},
{"type":"Text","value":" "},
{"type":"NameClass","value":"=verbatim="},
{"type":"Text","value":" "},
{"type":"NameClass","value":"~code~"},
{"type":"Text","value":" "},
{"type":"GenericDeleted","value":"+strikethrough+"},
{"type":"Text","value":" "},
{"type":"GenericUnderline","value":"_underline_"},
{"type":"Text","value":"\n"},
{"type":"GenericHeading","value":"*"},
{"type":"GenericStrong","value":" First heading in this post"},
{"type":"Text","value":"\nThis is a under first heading. \u003c"},
{"type":"LiteralString","value":"2018-07-27 Fri"},
{"type":"Text","value":"\u003e\n"},
{"type":"GenericSubheading","value":"**"},
{"type":"NameEntity","value":" COMMENT"},
{"type":"Text","value":" comment header\n"},
{"type":"GenericSubheading","value":"**"},
{"type":"Error","value":" TODO"},
{"type":"Text","value":" something\n"},
{"type":"GenericSubheading","value":"**"},
{"type":"LiteralStringRegex","value":" DONE"},
{"type":"Text","value":" anything\n"},
{"type":"Comment","value":"CLOSED: "},
{"type":"CommentSpecial","value":"[2018-08-01 Wed 16:17]"},
{"type":"Text","value":"\n\n"},
{"type":"NameBuiltin","value":"{{{n}}}"},
{"type":"Text","value":" abc "},
{"type":"NameBuiltin","value":"{{{n(,10)}}}"},
{"type":"Text","value":" def "},
{"type":"NameBuiltin","value":"{{{n(x,5)}}}"},
{"type":"Text","value":"\n"},
{"type":"GenericHeading","value":"*"},
{"type":"GenericStrong","value":" Second heading in this post"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"- "},
{"type":"Text","value":"unordered list item 1\n"},
{"type":"Keyword","value":"- "},
{"type":"Text","value":"unordered list item 2\n"},
{"type":"Keyword","value":"- Desc1 ::"},
{"type":"Text","value":" Description list item 1\n"},
{"type":"Keyword","value":"- Desc2 ::"},
{"type":"Text","value":" Description list item 2\n\n"},
{"type":"Keyword","value":"1."},
{"type":"Text","value":" ordered list item 1\n"},
{"type":"Keyword","value":"2."},
{"type":"Text","value":" ordered list item 2\n\n\n"},
{"type":"Keyword","value":"1)"},
{"type":"Text","value":" ordered list item 1\n"},
{"type":"Keyword","value":"2)"},
{"type":"Text","value":" ordered list item 2\n"},
{"type":"Keyword","value":"3)"},
{"type":"GenericEmph","value":" [@20]"},
{"type":"Text","value":" asdf\n\n\n"},
{"type":"Keyword","value":"- "},
{"type":"GenericStrong","value":"*bold*"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"- "},
{"type":"GenericEmph","value":"/italics/"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"- "},
{"type":"NameClass","value":"=verbatim="},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"- "},
{"type":"NameClass","value":"~code~"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"- "},
{"type":"GenericDeleted","value":"+strikethrough+"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"- "},
{"type":"GenericUnderline","value":"_underline_"},
{"type":"Text","value":"\n\n"},
{"type":"Comment","value":"#+begin_comment\nthis is a\ncomment\n#+end_comment"},
{"type":"Text","value":"\n\n"},
{"type":"Keyword","value":"- 09 ::"},
{"type":"Text","value":" asdf\n"},
{"type":"Keyword","value":"- 09 ::"},
{"type":"Text","value":" asdf\n"},
{"type":"GenericSubheading","value":"**"},
{"type":"Text","value":" Checkbox lists "},
{"type":"GenericEmph","value":" :checkbox:list:"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"- [ ]"},
{"type":"Text","value":" asdf\n"},
{"type":"Keyword","value":"- [X]"},
{"type":"Text","value":" def\n"},
{"type":"GenericHeading","value":"*"},
{"type":"GenericStrong","value":" Dates"},
{"type":"Text","value":"\n"},
{"type":"GenericSubheading","value":"**"},
{"type":"Text","value":" deadline\n"},
{"type":"Comment","value":"DEADLINE: "},
{"type":"CommentSpecial","value":"\u003c2018-07-31 Tue\u003e"},
{"type":"Text","value":"\nsomething\n"},
{"type":"GenericSubheading","value":"**"},
{"type":"Text","value":" scheduled\n"},
{"type":"Comment","value":"SCHEDULED: "},
{"type":"CommentSpecial","value":"\u003c2018-07-31 Tue\u003e"},
{"type":"Text","value":"\nsomething\n"},
{"type":"GenericHeading","value":"*"},
{"type":"GenericStrong","value":" Blocks"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"#+BEGIN_QUOTE"},
{"type":"Text","value":"\nquote\nblock\n"},
{"type":"Comment","value":"#+END_QUOTE"},
{"type":"Text","value":"\n\n"},
{"type":"Comment","value":"#+begin_example"},
{"type":"Text","value":"\nexample\nblock\n"},
{"type":"Comment","value":"#+end_example"},
{"type":"Text","value":"\n\n"},
{"type":"Comment","value":"#+begin_src "},
{"type":"CommentSpecial","value":"emacs-lisp"},
{"type":"Comment","value":"\n"},
{"type":"Punctuation","value":"("},
{"type":"NameFunction","value":"message"},
{"type":"Text","value":" "},
{"type":"LiteralString","value":"\"hello\""},
{"type":"Punctuation","value":")"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"#+end_src"},
{"type":"Text","value":"\n\n"},
{"type":"Comment","value":"#+begin_details"},
{"type":"Text","value":"\n#+begin_summary\nWhy is this in *green*?\n#+end_summary\nYou will learn that later below in [[#details-css][CSS]] section.\n"},
{"type":"Comment","value":"#+end_details"},
{"type":"Text","value":"\n\n"},
{"type":"Comment","value":"#+begin_export "},
{"type":"CommentSpecial","value":"html"},
{"type":"Text","value":"\n"},
{"type":"Punctuation","value":"\u003c"},
{"type":"NameTag","value":"style"},
{"type":"Punctuation","value":"\u003e"},
{"type":"Text","value":"\n"},
{"type":"Punctuation","value":"."},
{"type":"NameClass","value":"my-table"},
{"type":"Text","value":" "},
{"type":"NameTag","value":"th"},
{"type":"Operator","value":","},
{"type":"Text","value":"\n"},
{"type":"Punctuation","value":"."},
{"type":"NameClass","value":"my-table"},
{"type":"Text","value":" "},
{"type":"NameTag","value":"td"},
{"type":"Text","value":" "},
{"type":"Punctuation","value":"{"},
{"type":"Text","value":"\n "},
{"type":"Keyword","value":"padding"},
{"type":"Punctuation","value":":"},
{"type":"Text","value":" "},
{"type":"LiteralNumberInteger","value":"20"},
{"type":"KeywordType","value":"px"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n "},
{"type":"Keyword","value":"text-align"},
{"type":"Punctuation","value":":"},
{"type":"Text","value":" "},
{"type":"KeywordConstant","value":"left"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":"\n"},
{"type":"Punctuation","value":"}"},
{"type":"Text","value":"\n"},
{"type":"Punctuation","value":"\u003c/"},
{"type":"NameTag","value":"style"},
{"type":"Punctuation","value":"\u003e"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"#+end_export"},
{"type":"Text","value":"\n\n"},
{"type":"Keyword","value":"- "},
{"type":"NameBuiltin","value":"{{{latex}}}"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"- "},
{"type":"NameBuiltin","value":"{{{xetex}}}"},
{"type":"Text","value":"\n"},
{"type":"CommentSpecial","value":"#+caption"},
{"type":"Comment","value":": Declaring Constants"},
{"type":"Text","value":"\n"},
{"type":"CommentSpecial","value":"#+name"},
{"type":"Comment","value":": code__decl_constants"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"#+begin_src "},
{"type":"CommentSpecial","value":"systemverilog"},
{"type":"Comment","value":"\n"},
{"type":"Keyword","value":"const"},
{"type":"Text","value":" "},
{"type":"Keyword","value":"bit"},
{"type":"Text","value":" "},
{"type":"Punctuation","value":"["},
{"type":"LiteralNumberHex","value":"7"},
{"type":"Operator","value":":"},
{"type":"LiteralNumberHex","value":"0"},
{"type":"Punctuation","value":"]"},
{"type":"Text","value":" "},
{"type":"Name","value":"R_CHARACTER"},
{"type":"Text","value":" "},
{"type":"Operator","value":"="},
{"type":"Text","value":" "},
{"type":"LiteralNumberHex","value":"8"},
{"type":"LiteralNumberBin","value":"'b000"},
{"type":"Name","value":"_11100"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":" "},
{"type":"CommentSingle","value":"// The /K28.0/ character\n"},
{"type":"Keyword","value":"const"},
{"type":"Text","value":" "},
{"type":"Keyword","value":"bit"},
{"type":"Text","value":" "},
{"type":"Punctuation","value":"["},
{"type":"LiteralNumberHex","value":"7"},
{"type":"Operator","value":":"},
{"type":"LiteralNumberHex","value":"0"},
{"type":"Punctuation","value":"]"},
{"type":"Text","value":" "},
{"type":"Name","value":"A_CHARACTER"},
{"type":"Text","value":" "},
{"type":"Operator","value":"="},
{"type":"Text","value":" "},
{"type":"LiteralNumberHex","value":"8"},
{"type":"LiteralNumberBin","value":"'b011"},
{"type":"Name","value":"_11100"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":" "},
{"type":"CommentSingle","value":"// The /K28.3/ character\n"},
{"type":"Keyword","value":"const"},
{"type":"Text","value":" "},
{"type":"Keyword","value":"bit"},
{"type":"Text","value":" "},
{"type":"Punctuation","value":"["},
{"type":"LiteralNumberHex","value":"7"},
{"type":"Operator","value":":"},
{"type":"LiteralNumberHex","value":"0"},
{"type":"Punctuation","value":"]"},
{"type":"Text","value":" "},
{"type":"Name","value":"Q_CHARACTER"},
{"type":"Text","value":" "},
{"type":"Operator","value":"="},
{"type":"Text","value":" "},
{"type":"LiteralNumberHex","value":"8"},
{"type":"LiteralNumberBin","value":"'b100"},
{"type":"Name","value":"_11100"},
{"type":"Punctuation","value":";"},
{"type":"Text","value":" "},
{"type":"CommentSingle","value":"// The /K28.4/ character\n"},
{"type":"Comment","value":"#+end_src"},
{"type":"Text","value":"\nCheck out code snippet [["},
{"type":"NameAttribute","value":"code__decl_constants"},
{"type":"Text","value":"]].\n"},
{"type":"GenericHeading","value":"*"},
{"type":"GenericStrong","value":" Links "},
{"type":"GenericEmph","value":" :some_tag:"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":":properties:\n"},
{"type":"CommentSpecial","value":":CUSTOM_ID: links\n"},
{"type":"Comment","value":":end:"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"- "},
{"type":"Text","value":"[["},
{"type":"NameAttribute","value":"file:post-yaml.org"},
{"type":"Text","value":"]]\n"},
{"type":"Keyword","value":"- "},
{"type":"Text","value":"[["},
{"type":"NameAttribute","value":"file:post-yaml.org"},
{"type":"Text","value":"]["},
{"type":"NameTag","value":"Post exported with YAML front-matter"},
{"type":"Text","value":"]].\n"},
{"type":"Keyword","value":"- "},
{"type":"Text","value":"\u003c\u003c"},
{"type":"NameAttribute","value":"target"},
{"type":"Text","value":"\u003e\u003e\n"},
{"type":"GenericHeading","value":"*"},
{"type":"GenericStrong","value":" Tables"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":":PROPERTIES:\n"},
{"type":"CommentSpecial","value":":CUSTOM_ID: tables\n"},
{"type":"Comment","value":":END:"},
{"type":"Text","value":"\n"},
{"type":"LiteralString","value":"| a | b |"},
{"type":"Text","value":"\n"},
{"type":"LiteralString","value":"| c | d |"},
{"type":"Text","value":"\n\n"},
{"type":"LiteralString","value":"|---+---|"},
{"type":"Text","value":"\n"},
{"type":"LiteralString","value":"| a | b |"},
{"type":"Text","value":"\n"},
{"type":"LiteralString","value":"|---+---|"},
{"type":"Text","value":"\n"},
{"type":"LiteralString","value":"| c | d |"},
{"type":"Text","value":"\n"},
{"type":"LiteralString","value":"|---+---|"},
{"type":"Text","value":"\n\nSome text "},
{"type":"NameBuiltinPseudo","value":"[fn:"},
{"type":"LiteralString","value":"2"},
{"type":"NameBuiltinPseudo","value":"]"},
{"type":"Text","value":"\n\n"},
{"type":"Comment","value":"#+BEGIN: "},
{"type":"CommentSpecial","value":"aggregate"},
{"type":"Comment","value":" :table \"original\" :cols \"Color count()\"\n"},
{"type":"LiteralString","value":"| Color | count() |"},
{"type":"Text","value":"\n"},
{"type":"LiteralString","value":"|-------+---------|"},
{"type":"Text","value":"\n"},
{"type":"LiteralString","value":"| Red | 7 |"},
{"type":"Text","value":"\n"},
{"type":"LiteralString","value":"| Blue | 7 |"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"#+END:"},
{"type":"Text","value":"\n"},
{"type":"GenericHeading","value":"*"},
{"type":"GenericStrong","value":" Footnotes"},
{"type":"Text","value":"\n\n"},
{"type":"NameBuiltinPseudo","value":"[fn:"},
{"type":"LiteralString","value":"2"},
{"type":"NameBuiltinPseudo","value":"]"},
{"type":"Text","value":" footnote 2\n"},
{"type":"NameBuiltinPseudo","value":"[fn:"},
{"type":"LiteralString","value":"1"},
{"type":"NameBuiltinPseudo","value":"]"},
{"type":"Text","value":" For more detail, check out the Org manual [["},
{"type":"NameAttribute","value":"http://orgmode.org/\nmanual/Footnotes.html"},
{"type":"Text","value":"]["},
{"type":"NameTag","value":"page for footnotes"},
{"type":"Text","value":"]].\n"},
{"type":"GenericHeading","value":"*"},
{"type":"GenericStrong","value":" Local Variables"},
{"type":"GenericEmph","value":" :ARCHIVE:"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"# Local Variables:"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"# org-link-file-path-type: relative"},
{"type":"Text","value":"\n"},
{"type":"Comment","value":"# End:"},
{"type":"Text","value":"\n\nGeneric text.\n\n"},
{"type":"GenericEmph","value":"/Italicized/"},
{"type":"Text","value":"\n\n"},
{"type":"GenericStrong","value":"*strong*"},
{"type":"Text","value":"\n\n"},
{"type":"NameClass","value":"=Heading="},
{"type":"Text","value":"\n\n"},
{"type":"NameClass","value":"~Codeblock~"},
{"type":"Text","value":"\n\n"},
{"type":"GenericDeleted","value":"+StrikeTrough+"},
{"type":"Text","value":"\n\n"},
{"type":"GenericUnderline","value":"_Underlined_"}
]