Skip to content

Commit

Permalink
[shaderlab] update grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed May 18, 2017
1 parent 6b48d58 commit 486d6e1
Showing 1 changed file with 43 additions and 16 deletions.
59 changes: 43 additions & 16 deletions extensions/shaderlab/syntaxes/shaderlab.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
}

0 comments on commit 486d6e1

Please sign in to comment.