Skip to content

Commit ca3b024

Browse files
Adds highlighting for Range and Vector keywords
1 parent 78a2fe4 commit ca3b024

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

UnityShader.YAML-tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ patterns:
1414
match: //.*$
1515
- comment: Types
1616
name: storage.type.source.unity_shader
17-
match: (?<=[, \s\(\)])(((float|half|fixed)[2-4]?)|SurfaceOutput|bool|sampler(CUBE|[23]D)|void|2D|Color|struct|[Ff]loat)(?=[,\s\(\)])
17+
match: (?<=[, \s\(\)])(((float|half|fixed)[2-4]?)|SurfaceOutput|bool|sampler(CUBE|[23]D)|void|2D|Color|struct|[Ff]loat|[Rr]ange|[Vv]ector[234]?)(?=[,\s\(\)])
1818
- comment: String
1919
name: string.quoted.double.source.unity_shader
2020
match: \"[^\"]*\"

UnityShader.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<key>comment</key>
3131
<string>Types</string>
3232
<key>match</key>
33-
<string>(?&lt;=[, \s\(\)])(((float|half|fixed)[2-4]?)|SurfaceOutput|bool|sampler(CUBE|[23]D)|void|2D|Color|struct|[Ff]loat)(?=[,\s\(\)])</string>
33+
<string>(?&lt;=[, \s\(\)])(((float|half|fixed)[2-4]?)|SurfaceOutput|bool|sampler(CUBE|[23]D)|void|2D|Color|struct|[Ff]loat|[Rr]ange|[Vv]ector[234]?)(?=[,\s\(\)])</string>
3434
<key>name</key>
3535
<string>storage.type.source.unity_shader</string>
3636
</dict>

0 commit comments

Comments
 (0)