Skip to content

Commit 08ce03e

Browse files
committed
Fix macro textmate definition.
1 parent 21e9920 commit 08ce03e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

syntaxes/hlsl.tmLanguage.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"scopeName": "source.hlsl",
44
"fileTypes": [ "hlsl" ],
55
"author": ["antaalt"],
6+
"_resources":[
7+
"https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide",
8+
"https://macromates.com/manual/en/language_grammars#naming-conventions"
9+
],
610
"uuid": "75ae6133-98c4-45a5-ac1b-0c31e8af330c",
711
"patterns": [
812
{
@@ -531,7 +535,7 @@
531535
"match": "^\\s*#\\s*(if|elif|else|endif|ifdef|ifndef|undef|include|line|error|warning|pragma|INF)\\s+([\\w\\(\\)]+)?",
532536
"captures": {
533537
"1": {
534-
"name": "keyword.preprocessor.hlsl"
538+
"name": "keyword.other.preprocessor.hlsl"
535539
},
536540
"2": {
537541
"name": "variable.other.hlsl",
@@ -541,7 +545,7 @@
541545
"match": "(defined)\\(\\w+\\)",
542546
"captures": {
543547
"1": {
544-
"name": "constant.character.preprocessor.hlsl"
548+
"name": "entity.name.function"
545549
}
546550
}
547551
},
@@ -585,7 +589,7 @@
585589
"name": "keyword.preprocessor.hlsl"
586590
},
587591
"2": {
588-
"name": "constant.character.preprocessor.hlsl"
592+
"name": "entity.name.function.preprocessor.hlsl"
589593
},
590594
"3": {
591595
"name": "variable.other.hlsl"

0 commit comments

Comments
 (0)