...

Text file src/github.com/alecthomas/chroma/lexers/testdata/org.expected

Documentation: github.com/alecthomas/chroma/lexers/testdata

     1[
     2  {"type":"Comment","value":"# -*- org -*-"},
     3  {"type":"Text","value":"\n"},
     4  {"type":"CommentSpecial","value":"#+title"},
     5  {"type":"Comment","value":": Single Post with TOML front matter"},
     6  {"type":"Text","value":"\n"},
     7  {"type":"CommentSpecial","value":"#+author"},
     8  {"type":"Comment","value":":"},
     9  {"type":"Text","value":"\n"},
    10  {"type":"CommentSpecial","value":"#+date"},
    11  {"type":"Comment","value":": 2017-07-20"},
    12  {"type":"Text","value":"\n"},
    13  {"type":"CommentSpecial","value":"#+options"},
    14  {"type":"Comment","value":": creator:t toc:2"},
    15  {"type":"Text","value":"\n\n"},
    16  {"type":"CommentSpecial","value":"#+hugo_base_dir"},
    17  {"type":"Comment","value":": ../../"},
    18  {"type":"Text","value":"\n"},
    19  {"type":"CommentSpecial","value":"#+hugo_categories"},
    20  {"type":"Comment","value":": cat1 cat2"},
    21  {"type":"Text","value":"\n"},
    22  {"type":"CommentSpecial","value":"#+hugo_menu"},
    23  {"type":"Comment","value":": :menu \"foo\" :weight 10 :parent main :identifier single-toml"},
    24  {"type":"Text","value":"\n"},
    25  {"type":"CommentSpecial","value":"#+description"},
    26  {"type":"Comment","value":": Some description for this post."},
    27  {"type":"Text","value":"\n\nThis is a single post. You do not need to set the "},
    28  {"type":"NameClass","value":"=EXPORT_FILE_NAME="},
    29  {"type":"Text","value":"\nproperty in here. But then you also lose the tag and property\ninheritance Org awesomeness.\n\nline one "},
    30  {"type":"Operator","value":"\\\\"},
    31  {"type":"Text","value":"\nline two\n"},
    32  {"type":"GenericStrong","value":"*bold*"},
    33  {"type":"Text","value":" "},
    34  {"type":"GenericEmph","value":"/italics/"},
    35  {"type":"Text","value":" "},
    36  {"type":"NameClass","value":"=verbatim="},
    37  {"type":"Text","value":" "},
    38  {"type":"NameClass","value":"~code~"},
    39  {"type":"Text","value":" "},
    40  {"type":"GenericDeleted","value":"+strikethrough+"},
    41  {"type":"Text","value":" "},
    42  {"type":"GenericUnderline","value":"_underline_"},
    43  {"type":"Text","value":"\n"},
    44  {"type":"GenericHeading","value":"*"},
    45  {"type":"GenericStrong","value":" First heading in this post"},
    46  {"type":"Text","value":"\nThis is a under first heading. \u003c"},
    47  {"type":"LiteralString","value":"2018-07-27 Fri"},
    48  {"type":"Text","value":"\u003e\n"},
    49  {"type":"GenericSubheading","value":"**"},
    50  {"type":"NameEntity","value":" COMMENT"},
    51  {"type":"Text","value":" comment header\n"},
    52  {"type":"GenericSubheading","value":"**"},
    53  {"type":"Error","value":" TODO"},
    54  {"type":"Text","value":" something\n"},
    55  {"type":"GenericSubheading","value":"**"},
    56  {"type":"LiteralStringRegex","value":" DONE"},
    57  {"type":"Text","value":" anything\n"},
    58  {"type":"Comment","value":"CLOSED: "},
    59  {"type":"CommentSpecial","value":"[2018-08-01 Wed 16:17]"},
    60  {"type":"Text","value":"\n\n"},
    61  {"type":"NameBuiltin","value":"{{{n}}}"},
    62  {"type":"Text","value":" abc "},
    63  {"type":"NameBuiltin","value":"{{{n(,10)}}}"},
    64  {"type":"Text","value":" def "},
    65  {"type":"NameBuiltin","value":"{{{n(x,5)}}}"},
    66  {"type":"Text","value":"\n"},
    67  {"type":"GenericHeading","value":"*"},
    68  {"type":"GenericStrong","value":" Second heading in this post"},
    69  {"type":"Text","value":"\n"},
    70  {"type":"Keyword","value":"- "},
    71  {"type":"Text","value":"unordered list item 1\n"},
    72  {"type":"Keyword","value":"- "},
    73  {"type":"Text","value":"unordered list item 2\n"},
    74  {"type":"Keyword","value":"- Desc1 ::"},
    75  {"type":"Text","value":" Description list item 1\n"},
    76  {"type":"Keyword","value":"- Desc2 ::"},
    77  {"type":"Text","value":" Description list item 2\n\n"},
    78  {"type":"Keyword","value":"1."},
    79  {"type":"Text","value":" ordered list item 1\n"},
    80  {"type":"Keyword","value":"2."},
    81  {"type":"Text","value":" ordered list item 2\n\n\n"},
    82  {"type":"Keyword","value":"1)"},
    83  {"type":"Text","value":" ordered list item 1\n"},
    84  {"type":"Keyword","value":"2)"},
    85  {"type":"Text","value":" ordered list item 2\n"},
    86  {"type":"Keyword","value":"3)"},
    87  {"type":"GenericEmph","value":" [@20]"},
    88  {"type":"Text","value":" asdf\n\n\n"},
    89  {"type":"Keyword","value":"- "},
    90  {"type":"GenericStrong","value":"*bold*"},
    91  {"type":"Text","value":"\n"},
    92  {"type":"Keyword","value":"- "},
    93  {"type":"GenericEmph","value":"/italics/"},
    94  {"type":"Text","value":"\n"},
    95  {"type":"Keyword","value":"- "},
    96  {"type":"NameClass","value":"=verbatim="},
    97  {"type":"Text","value":"\n"},
    98  {"type":"Keyword","value":"- "},
    99  {"type":"NameClass","value":"~code~"},
   100  {"type":"Text","value":"\n"},
   101  {"type":"Keyword","value":"- "},
   102  {"type":"GenericDeleted","value":"+strikethrough+"},
   103  {"type":"Text","value":"\n"},
   104  {"type":"Keyword","value":"- "},
   105  {"type":"GenericUnderline","value":"_underline_"},
   106  {"type":"Text","value":"\n\n"},
   107  {"type":"Comment","value":"#+begin_comment\nthis is a\ncomment\n#+end_comment"},
   108  {"type":"Text","value":"\n\n"},
   109  {"type":"Keyword","value":"- 09 ::"},
   110  {"type":"Text","value":" asdf\n"},
   111  {"type":"Keyword","value":"- 09 ::"},
   112  {"type":"Text","value":" asdf\n"},
   113  {"type":"GenericSubheading","value":"**"},
   114  {"type":"Text","value":" Checkbox lists                                            "},
   115  {"type":"GenericEmph","value":" :checkbox:list:"},
   116  {"type":"Text","value":"\n"},
   117  {"type":"Keyword","value":"- [ ]"},
   118  {"type":"Text","value":" asdf\n"},
   119  {"type":"Keyword","value":"- [X]"},
   120  {"type":"Text","value":" def\n"},
   121  {"type":"GenericHeading","value":"*"},
   122  {"type":"GenericStrong","value":" Dates"},
   123  {"type":"Text","value":"\n"},
   124  {"type":"GenericSubheading","value":"**"},
   125  {"type":"Text","value":" deadline\n"},
   126  {"type":"Comment","value":"DEADLINE: "},
   127  {"type":"CommentSpecial","value":"\u003c2018-07-31 Tue\u003e"},
   128  {"type":"Text","value":"\nsomething\n"},
   129  {"type":"GenericSubheading","value":"**"},
   130  {"type":"Text","value":" scheduled\n"},
   131  {"type":"Comment","value":"SCHEDULED: "},
   132  {"type":"CommentSpecial","value":"\u003c2018-07-31 Tue\u003e"},
   133  {"type":"Text","value":"\nsomething\n"},
   134  {"type":"GenericHeading","value":"*"},
   135  {"type":"GenericStrong","value":" Blocks"},
   136  {"type":"Text","value":"\n"},
   137  {"type":"Comment","value":"#+BEGIN_QUOTE"},
   138  {"type":"Text","value":"\nquote\nblock\n"},
   139  {"type":"Comment","value":"#+END_QUOTE"},
   140  {"type":"Text","value":"\n\n"},
   141  {"type":"Comment","value":"#+begin_example"},
   142  {"type":"Text","value":"\nexample\nblock\n"},
   143  {"type":"Comment","value":"#+end_example"},
   144  {"type":"Text","value":"\n\n"},
   145  {"type":"Comment","value":"#+begin_src "},
   146  {"type":"CommentSpecial","value":"emacs-lisp"},
   147  {"type":"Comment","value":"\n"},
   148  {"type":"Punctuation","value":"("},
   149  {"type":"NameFunction","value":"message"},
   150  {"type":"Text","value":" "},
   151  {"type":"LiteralString","value":"\"hello\""},
   152  {"type":"Punctuation","value":")"},
   153  {"type":"Text","value":"\n"},
   154  {"type":"Comment","value":"#+end_src"},
   155  {"type":"Text","value":"\n\n"},
   156  {"type":"Comment","value":"#+begin_details"},
   157  {"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"},
   158  {"type":"Comment","value":"#+end_details"},
   159  {"type":"Text","value":"\n\n"},
   160  {"type":"Comment","value":"#+begin_export "},
   161  {"type":"CommentSpecial","value":"html"},
   162  {"type":"Text","value":"\n"},
   163  {"type":"Punctuation","value":"\u003c"},
   164  {"type":"NameTag","value":"style"},
   165  {"type":"Punctuation","value":"\u003e"},
   166  {"type":"Text","value":"\n"},
   167  {"type":"Punctuation","value":"."},
   168  {"type":"NameClass","value":"my-table"},
   169  {"type":"Text","value":" "},
   170  {"type":"NameTag","value":"th"},
   171  {"type":"Operator","value":","},
   172  {"type":"Text","value":"\n"},
   173  {"type":"Punctuation","value":"."},
   174  {"type":"NameClass","value":"my-table"},
   175  {"type":"Text","value":" "},
   176  {"type":"NameTag","value":"td"},
   177  {"type":"Text","value":" "},
   178  {"type":"Punctuation","value":"{"},
   179  {"type":"Text","value":"\n    "},
   180  {"type":"Keyword","value":"padding"},
   181  {"type":"Punctuation","value":":"},
   182  {"type":"Text","value":" "},
   183  {"type":"LiteralNumberInteger","value":"20"},
   184  {"type":"KeywordType","value":"px"},
   185  {"type":"Punctuation","value":";"},
   186  {"type":"Text","value":"\n    "},
   187  {"type":"Keyword","value":"text-align"},
   188  {"type":"Punctuation","value":":"},
   189  {"type":"Text","value":" "},
   190  {"type":"KeywordConstant","value":"left"},
   191  {"type":"Punctuation","value":";"},
   192  {"type":"Text","value":"\n"},
   193  {"type":"Punctuation","value":"}"},
   194  {"type":"Text","value":"\n"},
   195  {"type":"Punctuation","value":"\u003c/"},
   196  {"type":"NameTag","value":"style"},
   197  {"type":"Punctuation","value":"\u003e"},
   198  {"type":"Text","value":"\n"},
   199  {"type":"Comment","value":"#+end_export"},
   200  {"type":"Text","value":"\n\n"},
   201  {"type":"Keyword","value":"- "},
   202  {"type":"NameBuiltin","value":"{{{latex}}}"},
   203  {"type":"Text","value":"\n"},
   204  {"type":"Keyword","value":"- "},
   205  {"type":"NameBuiltin","value":"{{{xetex}}}"},
   206  {"type":"Text","value":"\n"},
   207  {"type":"CommentSpecial","value":"#+caption"},
   208  {"type":"Comment","value":": Declaring Constants"},
   209  {"type":"Text","value":"\n"},
   210  {"type":"CommentSpecial","value":"#+name"},
   211  {"type":"Comment","value":": code__decl_constants"},
   212  {"type":"Text","value":"\n"},
   213  {"type":"Comment","value":"#+begin_src "},
   214  {"type":"CommentSpecial","value":"systemverilog"},
   215  {"type":"Comment","value":"\n"},
   216  {"type":"Keyword","value":"const"},
   217  {"type":"Text","value":" "},
   218  {"type":"Keyword","value":"bit"},
   219  {"type":"Text","value":" "},
   220  {"type":"Punctuation","value":"["},
   221  {"type":"LiteralNumberHex","value":"7"},
   222  {"type":"Operator","value":":"},
   223  {"type":"LiteralNumberHex","value":"0"},
   224  {"type":"Punctuation","value":"]"},
   225  {"type":"Text","value":" "},
   226  {"type":"Name","value":"R_CHARACTER"},
   227  {"type":"Text","value":" "},
   228  {"type":"Operator","value":"="},
   229  {"type":"Text","value":" "},
   230  {"type":"LiteralNumberHex","value":"8"},
   231  {"type":"LiteralNumberBin","value":"'b000"},
   232  {"type":"Name","value":"_11100"},
   233  {"type":"Punctuation","value":";"},
   234  {"type":"Text","value":" "},
   235  {"type":"CommentSingle","value":"// The /K28.0/ character\n"},
   236  {"type":"Keyword","value":"const"},
   237  {"type":"Text","value":" "},
   238  {"type":"Keyword","value":"bit"},
   239  {"type":"Text","value":" "},
   240  {"type":"Punctuation","value":"["},
   241  {"type":"LiteralNumberHex","value":"7"},
   242  {"type":"Operator","value":":"},
   243  {"type":"LiteralNumberHex","value":"0"},
   244  {"type":"Punctuation","value":"]"},
   245  {"type":"Text","value":" "},
   246  {"type":"Name","value":"A_CHARACTER"},
   247  {"type":"Text","value":" "},
   248  {"type":"Operator","value":"="},
   249  {"type":"Text","value":" "},
   250  {"type":"LiteralNumberHex","value":"8"},
   251  {"type":"LiteralNumberBin","value":"'b011"},
   252  {"type":"Name","value":"_11100"},
   253  {"type":"Punctuation","value":";"},
   254  {"type":"Text","value":" "},
   255  {"type":"CommentSingle","value":"// The /K28.3/ character\n"},
   256  {"type":"Keyword","value":"const"},
   257  {"type":"Text","value":" "},
   258  {"type":"Keyword","value":"bit"},
   259  {"type":"Text","value":" "},
   260  {"type":"Punctuation","value":"["},
   261  {"type":"LiteralNumberHex","value":"7"},
   262  {"type":"Operator","value":":"},
   263  {"type":"LiteralNumberHex","value":"0"},
   264  {"type":"Punctuation","value":"]"},
   265  {"type":"Text","value":" "},
   266  {"type":"Name","value":"Q_CHARACTER"},
   267  {"type":"Text","value":" "},
   268  {"type":"Operator","value":"="},
   269  {"type":"Text","value":" "},
   270  {"type":"LiteralNumberHex","value":"8"},
   271  {"type":"LiteralNumberBin","value":"'b100"},
   272  {"type":"Name","value":"_11100"},
   273  {"type":"Punctuation","value":";"},
   274  {"type":"Text","value":" "},
   275  {"type":"CommentSingle","value":"// The /K28.4/ character\n"},
   276  {"type":"Comment","value":"#+end_src"},
   277  {"type":"Text","value":"\nCheck out code snippet [["},
   278  {"type":"NameAttribute","value":"code__decl_constants"},
   279  {"type":"Text","value":"]].\n"},
   280  {"type":"GenericHeading","value":"*"},
   281  {"type":"GenericStrong","value":" Links                                                           "},
   282  {"type":"GenericEmph","value":" :some_tag:"},
   283  {"type":"Text","value":"\n"},
   284  {"type":"Comment","value":":properties:\n"},
   285  {"type":"CommentSpecial","value":":CUSTOM_ID: links\n"},
   286  {"type":"Comment","value":":end:"},
   287  {"type":"Text","value":"\n"},
   288  {"type":"Keyword","value":"- "},
   289  {"type":"Text","value":"[["},
   290  {"type":"NameAttribute","value":"file:post-yaml.org"},
   291  {"type":"Text","value":"]]\n"},
   292  {"type":"Keyword","value":"- "},
   293  {"type":"Text","value":"[["},
   294  {"type":"NameAttribute","value":"file:post-yaml.org"},
   295  {"type":"Text","value":"]["},
   296  {"type":"NameTag","value":"Post exported with YAML front-matter"},
   297  {"type":"Text","value":"]].\n"},
   298  {"type":"Keyword","value":"- "},
   299  {"type":"Text","value":"\u003c\u003c"},
   300  {"type":"NameAttribute","value":"target"},
   301  {"type":"Text","value":"\u003e\u003e\n"},
   302  {"type":"GenericHeading","value":"*"},
   303  {"type":"GenericStrong","value":" Tables"},
   304  {"type":"Text","value":"\n"},
   305  {"type":"Comment","value":":PROPERTIES:\n"},
   306  {"type":"CommentSpecial","value":":CUSTOM_ID: tables\n"},
   307  {"type":"Comment","value":":END:"},
   308  {"type":"Text","value":"\n"},
   309  {"type":"LiteralString","value":"| a | b |"},
   310  {"type":"Text","value":"\n"},
   311  {"type":"LiteralString","value":"| c | d |"},
   312  {"type":"Text","value":"\n\n"},
   313  {"type":"LiteralString","value":"|---+---|"},
   314  {"type":"Text","value":"\n"},
   315  {"type":"LiteralString","value":"| a | b |"},
   316  {"type":"Text","value":"\n"},
   317  {"type":"LiteralString","value":"|---+---|"},
   318  {"type":"Text","value":"\n"},
   319  {"type":"LiteralString","value":"| c | d |"},
   320  {"type":"Text","value":"\n"},
   321  {"type":"LiteralString","value":"|---+---|"},
   322  {"type":"Text","value":"\n\nSome text "},
   323  {"type":"NameBuiltinPseudo","value":"[fn:"},
   324  {"type":"LiteralString","value":"2"},
   325  {"type":"NameBuiltinPseudo","value":"]"},
   326  {"type":"Text","value":"\n\n"},
   327  {"type":"Comment","value":"#+BEGIN: "},
   328  {"type":"CommentSpecial","value":"aggregate"},
   329  {"type":"Comment","value":" :table \"original\" :cols \"Color count()\"\n"},
   330  {"type":"LiteralString","value":"| Color | count() |"},
   331  {"type":"Text","value":"\n"},
   332  {"type":"LiteralString","value":"|-------+---------|"},
   333  {"type":"Text","value":"\n"},
   334  {"type":"LiteralString","value":"| Red   |       7 |"},
   335  {"type":"Text","value":"\n"},
   336  {"type":"LiteralString","value":"| Blue  |       7 |"},
   337  {"type":"Text","value":"\n"},
   338  {"type":"Comment","value":"#+END:"},
   339  {"type":"Text","value":"\n"},
   340  {"type":"GenericHeading","value":"*"},
   341  {"type":"GenericStrong","value":" Footnotes"},
   342  {"type":"Text","value":"\n\n"},
   343  {"type":"NameBuiltinPseudo","value":"[fn:"},
   344  {"type":"LiteralString","value":"2"},
   345  {"type":"NameBuiltinPseudo","value":"]"},
   346  {"type":"Text","value":" footnote 2\n"},
   347  {"type":"NameBuiltinPseudo","value":"[fn:"},
   348  {"type":"LiteralString","value":"1"},
   349  {"type":"NameBuiltinPseudo","value":"]"},
   350  {"type":"Text","value":" For more detail, check out the Org manual [["},
   351  {"type":"NameAttribute","value":"http://orgmode.org/\nmanual/Footnotes.html"},
   352  {"type":"Text","value":"]["},
   353  {"type":"NameTag","value":"page for footnotes"},
   354  {"type":"Text","value":"]].\n"},
   355  {"type":"GenericHeading","value":"*"},
   356  {"type":"GenericStrong","value":" Local Variables"},
   357  {"type":"GenericEmph","value":" :ARCHIVE:"},
   358  {"type":"Text","value":"\n"},
   359  {"type":"Comment","value":"# Local Variables:"},
   360  {"type":"Text","value":"\n"},
   361  {"type":"Comment","value":"# org-link-file-path-type: relative"},
   362  {"type":"Text","value":"\n"},
   363  {"type":"Comment","value":"# End:"},
   364  {"type":"Text","value":"\n"}
   365]

View as plain text