...

Text file src/github.com/alecthomas/chroma/v2/lexers/testdata/wgsl.texel.formats.expected

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

     1[
     2  {"type":"NameDecorator","value":"@group"},
     3  {"type":"Punctuation","value":"("},
     4  {"type":"LiteralNumberInteger","value":"0"},
     5  {"type":"Punctuation","value":")"},
     6  {"type":"TextWhitespace","value":" "},
     7  {"type":"NameDecorator","value":"@binding"},
     8  {"type":"Punctuation","value":"("},
     9  {"type":"LiteralNumberInteger","value":"0"},
    10  {"type":"Punctuation","value":")"},
    11  {"type":"TextWhitespace","value":" "},
    12  {"type":"KeywordDeclaration","value":"var"},
    13  {"type":"TextWhitespace","value":" "},
    14  {"type":"NameBuiltin","value":"texture_storage_2d"},
    15  {"type":"Operator","value":"\u003c"},
    16  {"type":"NameBuiltin","value":"rgba8unorm"},
    17  {"type":"Punctuation","value":","},
    18  {"type":"NameBuiltin","value":"write"},
    19  {"type":"Operator","value":"\u003e"},
    20  {"type":"Punctuation","value":";"},
    21  {"type":"TextWhitespace","value":"\n"},
    22  {"type":"NameDecorator","value":"@group"},
    23  {"type":"Punctuation","value":"("},
    24  {"type":"LiteralNumberInteger","value":"0"},
    25  {"type":"Punctuation","value":")"},
    26  {"type":"TextWhitespace","value":" "},
    27  {"type":"NameDecorator","value":"@binding"},
    28  {"type":"Punctuation","value":"("},
    29  {"type":"LiteralNumberInteger","value":"1"},
    30  {"type":"Punctuation","value":")"},
    31  {"type":"TextWhitespace","value":" "},
    32  {"type":"KeywordDeclaration","value":"var"},
    33  {"type":"TextWhitespace","value":" "},
    34  {"type":"NameBuiltin","value":"texture_storage_2d"},
    35  {"type":"Operator","value":"\u003c"},
    36  {"type":"NameBuiltin","value":"rgba8snorm"},
    37  {"type":"Punctuation","value":","},
    38  {"type":"NameBuiltin","value":"write"},
    39  {"type":"Operator","value":"\u003e"},
    40  {"type":"Punctuation","value":";"},
    41  {"type":"TextWhitespace","value":"\n"},
    42  {"type":"NameDecorator","value":"@group"},
    43  {"type":"Punctuation","value":"("},
    44  {"type":"LiteralNumberInteger","value":"0"},
    45  {"type":"Punctuation","value":")"},
    46  {"type":"TextWhitespace","value":" "},
    47  {"type":"NameDecorator","value":"@binding"},
    48  {"type":"Punctuation","value":"("},
    49  {"type":"LiteralNumberInteger","value":"2"},
    50  {"type":"Punctuation","value":")"},
    51  {"type":"TextWhitespace","value":" "},
    52  {"type":"KeywordDeclaration","value":"var"},
    53  {"type":"TextWhitespace","value":" "},
    54  {"type":"NameBuiltin","value":"texture_storage_2d"},
    55  {"type":"Operator","value":"\u003c"},
    56  {"type":"NameBuiltin","value":"rgba8uint"},
    57  {"type":"Punctuation","value":","},
    58  {"type":"NameBuiltin","value":"write"},
    59  {"type":"Operator","value":"\u003e"},
    60  {"type":"Punctuation","value":";"},
    61  {"type":"TextWhitespace","value":"\n"},
    62  {"type":"NameDecorator","value":"@group"},
    63  {"type":"Punctuation","value":"("},
    64  {"type":"LiteralNumberInteger","value":"0"},
    65  {"type":"Punctuation","value":")"},
    66  {"type":"TextWhitespace","value":" "},
    67  {"type":"NameDecorator","value":"@binding"},
    68  {"type":"Punctuation","value":"("},
    69  {"type":"LiteralNumberInteger","value":"3"},
    70  {"type":"Punctuation","value":")"},
    71  {"type":"TextWhitespace","value":" "},
    72  {"type":"KeywordDeclaration","value":"var"},
    73  {"type":"TextWhitespace","value":" "},
    74  {"type":"NameBuiltin","value":"texture_storage_2d"},
    75  {"type":"Operator","value":"\u003c"},
    76  {"type":"NameBuiltin","value":"rgba8sint"},
    77  {"type":"Punctuation","value":","},
    78  {"type":"NameBuiltin","value":"write"},
    79  {"type":"Operator","value":"\u003e"},
    80  {"type":"Punctuation","value":";"},
    81  {"type":"TextWhitespace","value":"\n"},
    82  {"type":"NameDecorator","value":"@group"},
    83  {"type":"Punctuation","value":"("},
    84  {"type":"LiteralNumberInteger","value":"0"},
    85  {"type":"Punctuation","value":")"},
    86  {"type":"TextWhitespace","value":" "},
    87  {"type":"NameDecorator","value":"@binding"},
    88  {"type":"Punctuation","value":"("},
    89  {"type":"LiteralNumberInteger","value":"4"},
    90  {"type":"Punctuation","value":")"},
    91  {"type":"TextWhitespace","value":" "},
    92  {"type":"KeywordDeclaration","value":"var"},
    93  {"type":"TextWhitespace","value":" "},
    94  {"type":"NameBuiltin","value":"texture_storage_2d"},
    95  {"type":"Operator","value":"\u003c"},
    96  {"type":"NameBuiltin","value":"rgba16uint"},
    97  {"type":"Punctuation","value":","},
    98  {"type":"NameBuiltin","value":"write"},
    99  {"type":"Operator","value":"\u003e"},
   100  {"type":"Punctuation","value":";"},
   101  {"type":"TextWhitespace","value":"\n"},
   102  {"type":"NameDecorator","value":"@group"},
   103  {"type":"Punctuation","value":"("},
   104  {"type":"LiteralNumberInteger","value":"0"},
   105  {"type":"Punctuation","value":")"},
   106  {"type":"TextWhitespace","value":" "},
   107  {"type":"NameDecorator","value":"@binding"},
   108  {"type":"Punctuation","value":"("},
   109  {"type":"LiteralNumberInteger","value":"5"},
   110  {"type":"Punctuation","value":")"},
   111  {"type":"TextWhitespace","value":" "},
   112  {"type":"KeywordDeclaration","value":"var"},
   113  {"type":"TextWhitespace","value":" "},
   114  {"type":"NameBuiltin","value":"texture_storage_2d"},
   115  {"type":"Operator","value":"\u003c"},
   116  {"type":"NameBuiltin","value":"rgba16sint"},
   117  {"type":"Punctuation","value":","},
   118  {"type":"NameBuiltin","value":"write"},
   119  {"type":"Operator","value":"\u003e"},
   120  {"type":"Punctuation","value":";"},
   121  {"type":"TextWhitespace","value":"\n"},
   122  {"type":"NameDecorator","value":"@group"},
   123  {"type":"Punctuation","value":"("},
   124  {"type":"LiteralNumberInteger","value":"0"},
   125  {"type":"Punctuation","value":")"},
   126  {"type":"TextWhitespace","value":" "},
   127  {"type":"NameDecorator","value":"@binding"},
   128  {"type":"Punctuation","value":"("},
   129  {"type":"LiteralNumberInteger","value":"6"},
   130  {"type":"Punctuation","value":")"},
   131  {"type":"TextWhitespace","value":" "},
   132  {"type":"KeywordDeclaration","value":"var"},
   133  {"type":"TextWhitespace","value":" "},
   134  {"type":"NameBuiltin","value":"texture_storage_2d"},
   135  {"type":"Operator","value":"\u003c"},
   136  {"type":"NameBuiltin","value":"rgba16float"},
   137  {"type":"Punctuation","value":","},
   138  {"type":"NameBuiltin","value":"write"},
   139  {"type":"Operator","value":"\u003e"},
   140  {"type":"Punctuation","value":";"},
   141  {"type":"TextWhitespace","value":"\n"},
   142  {"type":"NameDecorator","value":"@group"},
   143  {"type":"Punctuation","value":"("},
   144  {"type":"LiteralNumberInteger","value":"0"},
   145  {"type":"Punctuation","value":")"},
   146  {"type":"TextWhitespace","value":" "},
   147  {"type":"NameDecorator","value":"@binding"},
   148  {"type":"Punctuation","value":"("},
   149  {"type":"LiteralNumberInteger","value":"7"},
   150  {"type":"Punctuation","value":")"},
   151  {"type":"TextWhitespace","value":" "},
   152  {"type":"KeywordDeclaration","value":"var"},
   153  {"type":"TextWhitespace","value":" "},
   154  {"type":"NameBuiltin","value":"texture_storage_2d"},
   155  {"type":"Operator","value":"\u003c"},
   156  {"type":"NameBuiltin","value":"r32uint"},
   157  {"type":"Punctuation","value":","},
   158  {"type":"NameBuiltin","value":"write"},
   159  {"type":"Operator","value":"\u003e"},
   160  {"type":"Punctuation","value":";"},
   161  {"type":"TextWhitespace","value":"\n"},
   162  {"type":"NameDecorator","value":"@group"},
   163  {"type":"Punctuation","value":"("},
   164  {"type":"LiteralNumberInteger","value":"0"},
   165  {"type":"Punctuation","value":")"},
   166  {"type":"TextWhitespace","value":" "},
   167  {"type":"NameDecorator","value":"@binding"},
   168  {"type":"Punctuation","value":"("},
   169  {"type":"LiteralNumberInteger","value":"8"},
   170  {"type":"Punctuation","value":")"},
   171  {"type":"TextWhitespace","value":" "},
   172  {"type":"KeywordDeclaration","value":"var"},
   173  {"type":"TextWhitespace","value":" "},
   174  {"type":"NameBuiltin","value":"texture_storage_2d"},
   175  {"type":"Operator","value":"\u003c"},
   176  {"type":"NameBuiltin","value":"r32sint"},
   177  {"type":"Punctuation","value":","},
   178  {"type":"NameBuiltin","value":"write"},
   179  {"type":"Operator","value":"\u003e"},
   180  {"type":"Punctuation","value":";"},
   181  {"type":"TextWhitespace","value":"\n"},
   182  {"type":"NameDecorator","value":"@group"},
   183  {"type":"Punctuation","value":"("},
   184  {"type":"LiteralNumberInteger","value":"0"},
   185  {"type":"Punctuation","value":")"},
   186  {"type":"TextWhitespace","value":" "},
   187  {"type":"NameDecorator","value":"@binding"},
   188  {"type":"Punctuation","value":"("},
   189  {"type":"LiteralNumberInteger","value":"9"},
   190  {"type":"Punctuation","value":")"},
   191  {"type":"TextWhitespace","value":" "},
   192  {"type":"KeywordDeclaration","value":"var"},
   193  {"type":"TextWhitespace","value":" "},
   194  {"type":"NameBuiltin","value":"texture_storage_2d"},
   195  {"type":"Operator","value":"\u003c"},
   196  {"type":"NameBuiltin","value":"r32float"},
   197  {"type":"Punctuation","value":","},
   198  {"type":"NameBuiltin","value":"write"},
   199  {"type":"Operator","value":"\u003e"},
   200  {"type":"Punctuation","value":";"},
   201  {"type":"TextWhitespace","value":"\n"},
   202  {"type":"NameDecorator","value":"@group"},
   203  {"type":"Punctuation","value":"("},
   204  {"type":"LiteralNumberInteger","value":"1"},
   205  {"type":"Punctuation","value":")"},
   206  {"type":"TextWhitespace","value":" "},
   207  {"type":"NameDecorator","value":"@binding"},
   208  {"type":"Punctuation","value":"("},
   209  {"type":"LiteralNumberInteger","value":"0"},
   210  {"type":"Punctuation","value":")"},
   211  {"type":"TextWhitespace","value":" "},
   212  {"type":"KeywordDeclaration","value":"var"},
   213  {"type":"TextWhitespace","value":" "},
   214  {"type":"NameBuiltin","value":"texture_storage_2d"},
   215  {"type":"Operator","value":"\u003c"},
   216  {"type":"NameBuiltin","value":"rg32uint"},
   217  {"type":"Punctuation","value":","},
   218  {"type":"NameBuiltin","value":"write"},
   219  {"type":"Operator","value":"\u003e"},
   220  {"type":"Punctuation","value":";"},
   221  {"type":"TextWhitespace","value":"\n"},
   222  {"type":"NameDecorator","value":"@group"},
   223  {"type":"Punctuation","value":"("},
   224  {"type":"LiteralNumberInteger","value":"1"},
   225  {"type":"Punctuation","value":")"},
   226  {"type":"TextWhitespace","value":" "},
   227  {"type":"NameDecorator","value":"@binding"},
   228  {"type":"Punctuation","value":"("},
   229  {"type":"LiteralNumberInteger","value":"1"},
   230  {"type":"Punctuation","value":")"},
   231  {"type":"TextWhitespace","value":" "},
   232  {"type":"KeywordDeclaration","value":"var"},
   233  {"type":"TextWhitespace","value":" "},
   234  {"type":"NameBuiltin","value":"texture_storage_2d"},
   235  {"type":"Operator","value":"\u003c"},
   236  {"type":"NameBuiltin","value":"rg32sint"},
   237  {"type":"Punctuation","value":","},
   238  {"type":"NameBuiltin","value":"write"},
   239  {"type":"Operator","value":"\u003e"},
   240  {"type":"Punctuation","value":";"},
   241  {"type":"TextWhitespace","value":"\n"},
   242  {"type":"NameDecorator","value":"@group"},
   243  {"type":"Punctuation","value":"("},
   244  {"type":"LiteralNumberInteger","value":"1"},
   245  {"type":"Punctuation","value":")"},
   246  {"type":"TextWhitespace","value":" "},
   247  {"type":"NameDecorator","value":"@binding"},
   248  {"type":"Punctuation","value":"("},
   249  {"type":"LiteralNumberInteger","value":"2"},
   250  {"type":"Punctuation","value":")"},
   251  {"type":"TextWhitespace","value":" "},
   252  {"type":"KeywordDeclaration","value":"var"},
   253  {"type":"TextWhitespace","value":" "},
   254  {"type":"NameBuiltin","value":"texture_storage_2d"},
   255  {"type":"Operator","value":"\u003c"},
   256  {"type":"NameBuiltin","value":"rg32float"},
   257  {"type":"Punctuation","value":","},
   258  {"type":"NameBuiltin","value":"write"},
   259  {"type":"Operator","value":"\u003e"},
   260  {"type":"Punctuation","value":";"},
   261  {"type":"TextWhitespace","value":"\n"},
   262  {"type":"NameDecorator","value":"@group"},
   263  {"type":"Punctuation","value":"("},
   264  {"type":"LiteralNumberInteger","value":"1"},
   265  {"type":"Punctuation","value":")"},
   266  {"type":"TextWhitespace","value":" "},
   267  {"type":"NameDecorator","value":"@binding"},
   268  {"type":"Punctuation","value":"("},
   269  {"type":"LiteralNumberInteger","value":"3"},
   270  {"type":"Punctuation","value":")"},
   271  {"type":"TextWhitespace","value":" "},
   272  {"type":"KeywordDeclaration","value":"var"},
   273  {"type":"TextWhitespace","value":" "},
   274  {"type":"NameBuiltin","value":"texture_storage_2d"},
   275  {"type":"Operator","value":"\u003c"},
   276  {"type":"NameBuiltin","value":"rgba32uint"},
   277  {"type":"Punctuation","value":","},
   278  {"type":"NameBuiltin","value":"write"},
   279  {"type":"Operator","value":"\u003e"},
   280  {"type":"Punctuation","value":";"},
   281  {"type":"TextWhitespace","value":"\n"},
   282  {"type":"NameDecorator","value":"@group"},
   283  {"type":"Punctuation","value":"("},
   284  {"type":"LiteralNumberInteger","value":"1"},
   285  {"type":"Punctuation","value":")"},
   286  {"type":"TextWhitespace","value":" "},
   287  {"type":"NameDecorator","value":"@binding"},
   288  {"type":"Punctuation","value":"("},
   289  {"type":"LiteralNumberInteger","value":"4"},
   290  {"type":"Punctuation","value":")"},
   291  {"type":"TextWhitespace","value":" "},
   292  {"type":"KeywordDeclaration","value":"var"},
   293  {"type":"TextWhitespace","value":" "},
   294  {"type":"NameBuiltin","value":"texture_storage_2d"},
   295  {"type":"Operator","value":"\u003c"},
   296  {"type":"NameBuiltin","value":"rgba32sint"},
   297  {"type":"Punctuation","value":","},
   298  {"type":"NameBuiltin","value":"write"},
   299  {"type":"Operator","value":"\u003e"},
   300  {"type":"Punctuation","value":";"},
   301  {"type":"TextWhitespace","value":"\n"},
   302  {"type":"NameDecorator","value":"@group"},
   303  {"type":"Punctuation","value":"("},
   304  {"type":"LiteralNumberInteger","value":"1"},
   305  {"type":"Punctuation","value":")"},
   306  {"type":"TextWhitespace","value":" "},
   307  {"type":"NameDecorator","value":"@binding"},
   308  {"type":"Punctuation","value":"("},
   309  {"type":"LiteralNumberInteger","value":"5"},
   310  {"type":"Punctuation","value":")"},
   311  {"type":"TextWhitespace","value":" "},
   312  {"type":"KeywordDeclaration","value":"var"},
   313  {"type":"TextWhitespace","value":" "},
   314  {"type":"NameBuiltin","value":"texture_storage_2d"},
   315  {"type":"Operator","value":"\u003c"},
   316  {"type":"NameBuiltin","value":"rgba32float"},
   317  {"type":"Punctuation","value":","},
   318  {"type":"NameBuiltin","value":"write"},
   319  {"type":"Operator","value":"\u003e"},
   320  {"type":"Punctuation","value":";"},
   321  {"type":"TextWhitespace","value":"\n"},
   322  {"type":"NameDecorator","value":"@group"},
   323  {"type":"Punctuation","value":"("},
   324  {"type":"LiteralNumberInteger","value":"1"},
   325  {"type":"Punctuation","value":")"},
   326  {"type":"TextWhitespace","value":" "},
   327  {"type":"NameDecorator","value":"@binding"},
   328  {"type":"Punctuation","value":"("},
   329  {"type":"LiteralNumberInteger","value":"6"},
   330  {"type":"Punctuation","value":")"},
   331  {"type":"TextWhitespace","value":" "},
   332  {"type":"KeywordDeclaration","value":"var"},
   333  {"type":"TextWhitespace","value":" "},
   334  {"type":"NameBuiltin","value":"texture_storage_2d"},
   335  {"type":"Operator","value":"\u003c"},
   336  {"type":"NameBuiltin","value":"bgra8unorm"},
   337  {"type":"Punctuation","value":","},
   338  {"type":"NameBuiltin","value":"write"},
   339  {"type":"Operator","value":"\u003e"},
   340  {"type":"Punctuation","value":";"},
   341  {"type":"TextWhitespace","value":"\n"}
   342]

View as plain text