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

518 lines
20 KiB
Text

[
{"type":"Keyword","value":"enable"},
{"type":"TextWhitespace","value":" "},
{"type":"NameBuiltin","value":"f16"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"int"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"i32"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"uint"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"u32"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"float"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"f32"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"half"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"f16"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"ivec2"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec2i"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"uvec2"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec2u"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"NameBuiltin","value":"vec2"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec2f"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"ivec3"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec3i"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"uvec3"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec3u"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"NameBuiltin","value":"vec3"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec3f"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"ivec4"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec4i"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"uvec4"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec4u"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"ivec2_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec2"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"i32"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"uvec2_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec2"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"u32"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"vec2_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec2"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f32"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"ivec3_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec3"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"i32"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"uvec3_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec3"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"u32"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"vec3_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec3"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f32"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"ivec4_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec4"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"i32"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"uvec4_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec4"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"u32"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"vec4_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec4"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f32"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"hvec2"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec2h"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"hvec3"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec3h"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"hvec4"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec4h"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"hvec4_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"vec4"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f16"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m22"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat2x2f"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m23"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat2x3f"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m24"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat2x4f"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m32"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat3x2f"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m33"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat3x3f"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m34"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat3x4f"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m42"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat4x2f"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m43"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat4x3f"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m44"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat4x4f"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m22_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat2x2"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f32"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m23_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat2x3"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f32"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m24_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat2x4"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f32"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m32_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat3x2"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f32"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m33_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat3x3"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f32"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m34_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat3x4"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f32"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m42_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat4x2"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f32"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m43_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat4x3"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f32"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m44_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat4x4"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f32"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m22"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat2x2h"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"m23"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat2x3h"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"h24"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat2x4h"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"h32"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat3x2h"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"h33"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat3x3h"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"h34"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat3x4h"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"h42"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat4x2h"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"h43"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat4x3h"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"h44"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat4x4h"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"h22_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat2x2"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f16"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"h23_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat2x3"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f16"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"h24_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat2x4"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f16"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"h32_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat3x2"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f16"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"h33_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat3x3"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f16"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"h34_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat3x4"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f16"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"h42_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat4x2"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f16"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"h43_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat4x3"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f16"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"},
{"type":"Keyword","value":"alias"},
{"type":"TextWhitespace","value":" "},
{"type":"Name","value":"h44_"},
{"type":"Operator","value":"="},
{"type":"NameBuiltin","value":"mat4x4"},
{"type":"Operator","value":"\u003c"},
{"type":"NameBuiltin","value":"f16"},
{"type":"Operator","value":"\u003e"},
{"type":"Punctuation","value":";"},
{"type":"TextWhitespace","value":"\n"}
]