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,23 @@
{
"comments": {
"lineComment": "//",
"blockComment": [ "/*", "*/" ]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""]
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""]
]
}