We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f111285 commit 87c0dcaCopy full SHA for 87c0dca
1 file changed
grammars/hlsl.json
@@ -23,17 +23,21 @@
23
"end": "$"
24
},
25
{
26
- "name": "constant.numeric.hlsl",
27
- "match": "\\b([0-9]+\\.?[0-9]*)\\b"
28
- },
29
- {
30
31
- "match": "\\b(\\.[0-9]+)\\b"
32
33
34
- "name": "constant.numeric.hex.hlsl",
35
- "match": "\\b(0x[0-9A-F]+)\\b"
36
+ "name": "constant.numeric.decimal.hlsl",
+ "match": "\\b[0-9]+\\.[0-9]*(F|f)?\\b"
+ },
+ {
+ "match": "(\\.([0-9]+)(F|f)?)\\b"
+ "match": "\\b([0-9]+(F|f)?)\\b"
37
38
+ "name": "constant.numeric.hex.hlsl",
39
+ "match": "\\b(0(x|X)[0-9a-fA-F]+)\\b"
40
41
42
"name": "constant.language.hlsl",
43
"match": "\\b(false|true)\\b"
0 commit comments