Added lexars
This commit is contained in:
parent
382b2ce94b
commit
f9f64b0558
820 changed files with 149371 additions and 0 deletions
lexers/testdata
40
lexers/testdata/hlsl.expected
vendored
Normal file
40
lexers/testdata/hlsl.expected
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
[
|
||||
{"type":"KeywordType","value":"float4"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Name","value":"vertex"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"KeywordType","value":"float3"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Name","value":"position"},
|
||||
{"type":"Punctuation","value":")"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"Punctuation","value":"{"},
|
||||
{"type":"Text","value":"\n "},
|
||||
{"type":"Keyword","value":"return"},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameBuiltin","value":"mul"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"Name","value":"projection"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameBuiltin","value":"mul"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"Name","value":"view"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"NameBuiltin","value":"mul"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"Name","value":"model"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"KeywordType","value":"float4"},
|
||||
{"type":"Punctuation","value":"("},
|
||||
{"type":"Name","value":"position"},
|
||||
{"type":"Punctuation","value":","},
|
||||
{"type":"Text","value":" "},
|
||||
{"type":"LiteralNumberFloat","value":"1.0"},
|
||||
{"type":"Punctuation","value":"))));"},
|
||||
{"type":"Text","value":"\n"},
|
||||
{"type":"Punctuation","value":"}"},
|
||||
{"type":"Text","value":"\n"}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue