Added lexars
This commit is contained in:
parent
382b2ce94b
commit
f9f64b0558
820 changed files with 149371 additions and 0 deletions
lexers/testdata
342
lexers/testdata/wgsl.texel.formats.expected
vendored
Normal file
342
lexers/testdata/wgsl.texel.formats.expected
vendored
Normal file
|
@ -0,0 +1,342 @@
|
|||
[
|
||||
{"type":"NameDecorator","value":"@group"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"0"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameDecorator","value":"@binding"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"0"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"KeywordDeclaration","value":"var"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameBuiltin","value":"texture_storage_2d"},
|
||||
{"type":"Operator","value":"\u003c"},
|
||||
{"type":"NameBuiltin","value":"rgba8unorm"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"NameBuiltin","value":"write"},
|
||||
{"type":"Operator","value":"\u003e"},
|
||||
{"type":"Punctuation","value":";"},
|
||||
{"type":"TextWhitespace","value":"\n"},
|
||||
{"type":"NameDecorator","value":"@group"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"0"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameDecorator","value":"@binding"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"1"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"KeywordDeclaration","value":"var"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameBuiltin","value":"texture_storage_2d"},
|
||||
{"type":"Operator","value":"\u003c"},
|
||||
{"type":"NameBuiltin","value":"rgba8snorm"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"NameBuiltin","value":"write"},
|
||||
{"type":"Operator","value":"\u003e"},
|
||||
{"type":"Punctuation","value":";"},
|
||||
{"type":"TextWhitespace","value":"\n"},
|
||||
{"type":"NameDecorator","value":"@group"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"0"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameDecorator","value":"@binding"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"2"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"KeywordDeclaration","value":"var"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameBuiltin","value":"texture_storage_2d"},
|
||||
{"type":"Operator","value":"\u003c"},
|
||||
{"type":"NameBuiltin","value":"rgba8uint"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"NameBuiltin","value":"write"},
|
||||
{"type":"Operator","value":"\u003e"},
|
||||
{"type":"Punctuation","value":";"},
|
||||
{"type":"TextWhitespace","value":"\n"},
|
||||
{"type":"NameDecorator","value":"@group"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"0"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameDecorator","value":"@binding"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"3"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"KeywordDeclaration","value":"var"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameBuiltin","value":"texture_storage_2d"},
|
||||
{"type":"Operator","value":"\u003c"},
|
||||
{"type":"NameBuiltin","value":"rgba8sint"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"NameBuiltin","value":"write"},
|
||||
{"type":"Operator","value":"\u003e"},
|
||||
{"type":"Punctuation","value":";"},
|
||||
{"type":"TextWhitespace","value":"\n"},
|
||||
{"type":"NameDecorator","value":"@group"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"0"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameDecorator","value":"@binding"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"4"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"KeywordDeclaration","value":"var"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameBuiltin","value":"texture_storage_2d"},
|
||||
{"type":"Operator","value":"\u003c"},
|
||||
{"type":"NameBuiltin","value":"rgba16uint"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"NameBuiltin","value":"write"},
|
||||
{"type":"Operator","value":"\u003e"},
|
||||
{"type":"Punctuation","value":";"},
|
||||
{"type":"TextWhitespace","value":"\n"},
|
||||
{"type":"NameDecorator","value":"@group"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"0"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameDecorator","value":"@binding"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"5"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"KeywordDeclaration","value":"var"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameBuiltin","value":"texture_storage_2d"},
|
||||
{"type":"Operator","value":"\u003c"},
|
||||
{"type":"NameBuiltin","value":"rgba16sint"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"NameBuiltin","value":"write"},
|
||||
{"type":"Operator","value":"\u003e"},
|
||||
{"type":"Punctuation","value":";"},
|
||||
{"type":"TextWhitespace","value":"\n"},
|
||||
{"type":"NameDecorator","value":"@group"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"0"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameDecorator","value":"@binding"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"6"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"KeywordDeclaration","value":"var"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameBuiltin","value":"texture_storage_2d"},
|
||||
{"type":"Operator","value":"\u003c"},
|
||||
{"type":"NameBuiltin","value":"rgba16float"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"NameBuiltin","value":"write"},
|
||||
{"type":"Operator","value":"\u003e"},
|
||||
{"type":"Punctuation","value":";"},
|
||||
{"type":"TextWhitespace","value":"\n"},
|
||||
{"type":"NameDecorator","value":"@group"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"0"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameDecorator","value":"@binding"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"7"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"KeywordDeclaration","value":"var"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameBuiltin","value":"texture_storage_2d"},
|
||||
{"type":"Operator","value":"\u003c"},
|
||||
{"type":"NameBuiltin","value":"r32uint"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"NameBuiltin","value":"write"},
|
||||
{"type":"Operator","value":"\u003e"},
|
||||
{"type":"Punctuation","value":";"},
|
||||
{"type":"TextWhitespace","value":"\n"},
|
||||
{"type":"NameDecorator","value":"@group"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"0"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameDecorator","value":"@binding"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"8"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"KeywordDeclaration","value":"var"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameBuiltin","value":"texture_storage_2d"},
|
||||
{"type":"Operator","value":"\u003c"},
|
||||
{"type":"NameBuiltin","value":"r32sint"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"NameBuiltin","value":"write"},
|
||||
{"type":"Operator","value":"\u003e"},
|
||||
{"type":"Punctuation","value":";"},
|
||||
{"type":"TextWhitespace","value":"\n"},
|
||||
{"type":"NameDecorator","value":"@group"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"0"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameDecorator","value":"@binding"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"9"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"KeywordDeclaration","value":"var"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameBuiltin","value":"texture_storage_2d"},
|
||||
{"type":"Operator","value":"\u003c"},
|
||||
{"type":"NameBuiltin","value":"r32float"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"NameBuiltin","value":"write"},
|
||||
{"type":"Operator","value":"\u003e"},
|
||||
{"type":"Punctuation","value":";"},
|
||||
{"type":"TextWhitespace","value":"\n"},
|
||||
{"type":"NameDecorator","value":"@group"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"1"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameDecorator","value":"@binding"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"0"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"KeywordDeclaration","value":"var"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameBuiltin","value":"texture_storage_2d"},
|
||||
{"type":"Operator","value":"\u003c"},
|
||||
{"type":"NameBuiltin","value":"rg32uint"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"NameBuiltin","value":"write"},
|
||||
{"type":"Operator","value":"\u003e"},
|
||||
{"type":"Punctuation","value":";"},
|
||||
{"type":"TextWhitespace","value":"\n"},
|
||||
{"type":"NameDecorator","value":"@group"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"1"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameDecorator","value":"@binding"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"1"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"KeywordDeclaration","value":"var"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameBuiltin","value":"texture_storage_2d"},
|
||||
{"type":"Operator","value":"\u003c"},
|
||||
{"type":"NameBuiltin","value":"rg32sint"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"NameBuiltin","value":"write"},
|
||||
{"type":"Operator","value":"\u003e"},
|
||||
{"type":"Punctuation","value":";"},
|
||||
{"type":"TextWhitespace","value":"\n"},
|
||||
{"type":"NameDecorator","value":"@group"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"1"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameDecorator","value":"@binding"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"2"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"KeywordDeclaration","value":"var"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameBuiltin","value":"texture_storage_2d"},
|
||||
{"type":"Operator","value":"\u003c"},
|
||||
{"type":"NameBuiltin","value":"rg32float"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"NameBuiltin","value":"write"},
|
||||
{"type":"Operator","value":"\u003e"},
|
||||
{"type":"Punctuation","value":";"},
|
||||
{"type":"TextWhitespace","value":"\n"},
|
||||
{"type":"NameDecorator","value":"@group"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"1"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameDecorator","value":"@binding"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"3"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"KeywordDeclaration","value":"var"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameBuiltin","value":"texture_storage_2d"},
|
||||
{"type":"Operator","value":"\u003c"},
|
||||
{"type":"NameBuiltin","value":"rgba32uint"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"NameBuiltin","value":"write"},
|
||||
{"type":"Operator","value":"\u003e"},
|
||||
{"type":"Punctuation","value":";"},
|
||||
{"type":"TextWhitespace","value":"\n"},
|
||||
{"type":"NameDecorator","value":"@group"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"1"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameDecorator","value":"@binding"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"4"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"KeywordDeclaration","value":"var"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameBuiltin","value":"texture_storage_2d"},
|
||||
{"type":"Operator","value":"\u003c"},
|
||||
{"type":"NameBuiltin","value":"rgba32sint"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"NameBuiltin","value":"write"},
|
||||
{"type":"Operator","value":"\u003e"},
|
||||
{"type":"Punctuation","value":";"},
|
||||
{"type":"TextWhitespace","value":"\n"},
|
||||
{"type":"NameDecorator","value":"@group"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"1"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameDecorator","value":"@binding"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"5"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"KeywordDeclaration","value":"var"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameBuiltin","value":"texture_storage_2d"},
|
||||
{"type":"Operator","value":"\u003c"},
|
||||
{"type":"NameBuiltin","value":"rgba32float"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"NameBuiltin","value":"write"},
|
||||
{"type":"Operator","value":"\u003e"},
|
||||
{"type":"Punctuation","value":";"},
|
||||
{"type":"TextWhitespace","value":"\n"},
|
||||
{"type":"NameDecorator","value":"@group"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"1"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameDecorator","value":"@binding"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"LiteralNumberInteger","value":"6"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"KeywordDeclaration","value":"var"},
|
||||
{"type":"TextWhitespace","value":" "},
|
||||
{"type":"NameBuiltin","value":"texture_storage_2d"},
|
||||
{"type":"Operator","value":"\u003c"},
|
||||
{"type":"NameBuiltin","value":"bgra8unorm"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"NameBuiltin","value":"write"},
|
||||
{"type":"Operator","value":"\u003e"},
|
||||
{"type":"Punctuation","value":";"},
|
||||
{"type":"TextWhitespace","value":"\n"}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue