Update grammars

This commit is contained in:
Alex Ross
2020-02-03 13:01:47 +01:00
parent 0b312b08f2
commit efa12b2f49
22 changed files with 13338 additions and 13658 deletions

View File

@@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/tgjones/shaders-tmLanguage/commit/cd1ef40f549f9ce2b9e6b73498688de114a85382",
"version": "https://github.com/tgjones/shaders-tmLanguage/commit/87c0dca3a39170dbd7ee7e277db4f915fb2de14a",
"name": "HLSL",
"scopeName": "source.hlsl",
"patterns": [
@@ -19,16 +19,20 @@
"end": "$"
},
{
"name": "constant.numeric.hlsl",
"match": "\\b([0-9]+\\.?[0-9]*)\\b"
"name": "constant.numeric.decimal.hlsl",
"match": "\\b[0-9]+\\.[0-9]*(F|f)?\\b"
},
{
"name": "constant.numeric.hlsl",
"match": "\\b(\\.[0-9]+)\\b"
"name": "constant.numeric.decimal.hlsl",
"match": "(\\.([0-9]+)(F|f)?)\\b"
},
{
"name": "constant.numeric.decimal.hlsl",
"match": "\\b([0-9]+(F|f)?)\\b"
},
{
"name": "constant.numeric.hex.hlsl",
"match": "\\b(0x[0-9A-F]+)\\b"
"match": "\\b(0(x|X)[0-9a-fA-F]+)\\b"
},
{
"name": "constant.language.hlsl",