@@ -916,6 +916,9 @@ function New-File ($Name) { }
916916# @@@@@@@@ definition
917917# ^ punctuation.section.braces.begin
918918# ^ punctuation.section.braces.end
919+ New-File
920+ # ^^^^^^^^ meta.function-call support.function
921+ # @@@@@@@@ reference
919922function NewFile ($Name ) { }
920923# <- storage.type
921924# ^^^^^^^ entity.name.function
@@ -1129,6 +1132,8 @@ class Vehicle {
11291132
11301133 [void ]Drive([int ]$NumberOfMiles ) {
11311134# ^^^^ storage.type
1135+ # ^^^^^ meta.function entity.name.function
1136+ # @@@@@ definition
11321137# ^^^ storage.type
11331138# ^ punctuation.definition.variable
11341139# ^ variable.other.readwrite
@@ -1140,9 +1145,23 @@ class Vehicle {
11401145
11411146 }
11421147 # <- 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+ }
11431155}
11441156# <- punctuation.section.braces.end
11451157
1158+ $fiat.Drive (42 )
1159+ # ^^^^^ meta.function-call
1160+ # @@@@@ reference
1161+ [Vehicle ]::GetAvailableColors()
1162+ # ^^^^^^^^^^^^^^^^^^ meta.function-call variable.function
1163+ # @@@@@@@@@@@@@@@@@@ reference
1164+
11461165# Control words
11471166foreach ($item in $collection ) {
11481167# <- keyword.control
0 commit comments