Implement HLSL syntax highlighting

And use HLSL grammar to highlight CG blocks in ShaderLab shaders.
This commit is contained in:
Tim Jones
2017-02-07 23:08:01 +08:00
parent bcff7c60e5
commit 67560d3192
8 changed files with 820 additions and 219 deletions

View File

@@ -0,0 +1,19 @@
{
"name": "hlsl",
"version": "0.1.0",
"publisher": "vscode",
"engines": { "vscode": "*" },
"contributes": {
"languages": [{
"id": "hlsl",
"extensions": [".hlsl",".hlsli",".fx",".fxh",".vsh",".psh",".cginc",".compute"],
"aliases": ["HLSL", "hlsl"],
"configuration": "./language-configuration.json"
}],
"grammars": [{
"language": "hlsl",
"path": "./syntaxes/hlsl.json",
"scopeName":"source.hlsl"
}]
}
}