mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 09:18:59 +00:00
[shaderlab] update grammar
This commit is contained in:
parent
6b48d58387
commit
486d6e1f00
|
@ -93,6 +93,48 @@
|
|||
"name": "keyword.other"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#hlsl-embedded"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "meta.hlslblock",
|
||||
"begin": "\\b(HLSLPROGRAM|HLSLINCLUDE)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other"
|
||||
}
|
||||
},
|
||||
"end": "\\b(ENDHLSL)\\b",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#hlsl-embedded"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "string.quoted.double.shaderlab",
|
||||
"begin": "\"",
|
||||
"end": "\""
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"numbers": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.numeric.shaderlab",
|
||||
"match": "\\b([0-9]+\\.?[0-9]*)\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
"hlsl-embedded": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.hlsl"
|
||||
|
@ -154,22 +196,7 @@
|
|||
"match": "\\b(SurfaceOutputStandardSpecular|SurfaceOutputStandard|SurfaceOutput|Input)\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "string.quoted.double.shaderlab",
|
||||
"begin": "\"",
|
||||
"end": "\""
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"numbers": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.numeric.shaderlab",
|
||||
"match": "\\b([0-9]+\\.?[0-9]*)\\b"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"version": "https://github.com/tgjones/shaders-tmLanguage/commit/cd1ef40f549f9ce2b9e6b73498688de114a85382"
|
||||
"version": "https://github.com/tgjones/shaders-tmLanguage/commit/a6ee9f41e4b99812c6698462cae4868c80f82a3b"
|
||||
}
|
Loading…
Reference in a new issue