@@ -916,6 +916,9 @@ function New-File ($Name) { }
916
916
# @@@@@@@@ definition
917
917
# ^ punctuation.section.braces.begin
918
918
# ^ punctuation.section.braces.end
919
+ New-File
920
+ # ^^^^^^^^ meta.function-call support.function
921
+ # @@@@@@@@ reference
919
922
function NewFile ($Name ) { }
920
923
# <- storage.type
921
924
# ^^^^^^^ entity.name.function
@@ -1129,6 +1132,8 @@ class Vehicle {
1129
1132
1130
1133
[void ]Drive([int ]$NumberOfMiles ) {
1131
1134
# ^^^^ storage.type
1135
+ # ^^^^^ meta.function entity.name.function
1136
+ # @@@@@ definition
1132
1137
# ^^^ storage.type
1133
1138
# ^ punctuation.definition.variable
1134
1139
# ^ variable.other.readwrite
@@ -1140,9 +1145,23 @@ class Vehicle {
1140
1145
1141
1146
}
1142
1147
# <- punctuation.section.braces.end
1148
+ static [System.Array ] GetAvailableColors() {
1149
+ # ^^^^^^^^^^^^^^^^^^ meta.function entity.name.function
1150
+ # @@@@@@@@@@@@@@@@@@ definition
1151
+ # ^^^^^^ meta.function storage.modifier
1152
+ # ^^^^^^^^^^^ meta.function storage.type
1153
+ return ' yellow' , ' red'
1154
+ }
1143
1155
}
1144
1156
# <- punctuation.section.braces.end
1145
1157
1158
+ $fiat.Drive (42 )
1159
+ # ^^^^^ meta.function-call
1160
+ # @@@@@ reference
1161
+ [Vehicle ]::GetAvailableColors()
1162
+ # ^^^^^^^^^^^^^^^^^^ meta.function-call variable.function
1163
+ # @@@@@@@@@@@@@@@@@@ reference
1164
+
1146
1165
# Control words
1147
1166
foreach ($item in $collection ) {
1148
1167
# <- keyword.control
0 commit comments