@@ -74,10 +74,11 @@ function Test-Path {}
7474#>
7575# <- punctuation.definition.comment.block.end
7676function Verb-Noun {
77- # ^^^^^^^^^^^^^^^^^ meta.function
78- # ^^^^^^^ storage.type
79- # ^^^^^^^^^ entity.name.function
77+ # ^^^^^^^^^^^^^^^^^^^ meta.function.powershell
78+ # ^^^^^^^ keyword.declaration.function.powershell
79+ # ^^^^^^^^^ entity.name.function.powershell
8080# @@@@@@@@@ definition
81+ # ^ punctuation.section.block.begin.powershell
8182 [CmdletBinding (DefaultParameterSetName = ' Parameter Set 1' ,
8283 # <- meta.attribute punctuation.section.brackets.begin
8384 # ^ meta.attribute support.function.attribute
@@ -112,7 +113,7 @@ function Verb-Noun {
112113 # ^ meta.attribute punctuation.section.group.end
113114 # ^ meta.attribute punctuation.section.brackets.end
114115 [OutputType ([String ])]
115- # ^^^^^^^^^^^^^^^^^^^^^^^^^ meta.block .powershell
116+ # ^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function .powershell
116117# ^^^^^^^^^^^^^^^^^^^^^^ meta.attribute.powershell
117118# ^ punctuation.section.brackets.begin.powershell
118119# ^^^^^^^^^^ support.function.attribute.powershell
@@ -123,9 +124,11 @@ function Verb-Noun {
123124# ^ punctuation.section.group.end.powershell
124125# ^ punctuation.section.brackets.end.powershell
125126 Param
126- # ^^^^^ keyword.declaration.parameter
127+ # ^^^^^^^^ meta.function.powershell
128+ # ^^^^^ keyword.declaration.parameter.powershell
127129 (
128- # <- punctuation.section.group.begin
130+ # ^^^^ meta.function.powershell
131+ # ^ punctuation.section.block.begin.powershell
129132 # Param1 help description
130133 # <- comment.line punctuation.definition.comment
131134 # ^^^^^^^^^^^^^^^^^^^^^^^ comment.line
@@ -285,13 +288,15 @@ function Verb-Noun {
285288 # ^ punctuation.section.group.end
286289 # ^ punctuation.section.brackets.end
287290 [int32 ]
288- # <- punctuation.section.brackets.begin
289- # ^^^^^ storage.type
290- # ^ punctuation.section.brackets.end
291+ # ^^^^^^^^^^^^^^ meta.function.powershell
292+ # ^ punctuation.section.brackets.begin.powershell
293+ # ^^^^^ storage.type.powershell
294+ # ^ punctuation.section.brackets.end.powershell
291295 $Param2 ,
292- # <- punctuation.definition.variable
293- # ^ variable.other.readwrite
294- # ^ punctuation.separator
296+ # ^^^^^^^^^^^^^^^ meta.function.powershell
297+ # ^^^^^^^ variable.other.readwrite.powershell
298+ # ^ punctuation.definition.variable.powershell
299+ # ^ punctuation.separator.sequence.powershell
295300
296301 # Param3 help description
297302 # <- comment.line punctuation.definition.comment
@@ -323,7 +328,7 @@ function Verb-Noun {
323328 # ^ meta.attribute punctuation.section.group.end
324329 # ^ meta.attribute punctuation.section.brackets.end
325330 [String ]
326- # ^^^^^^^^^^^^^^^ meta.block.powershell meta.group .powershell
331+ # ^^^^^^^^^^^^^^^ meta.function .powershell
327332# ^ punctuation.section.brackets.begin.powershell
328333# ^^^^^^ support.type.powershell
329334# ^ punctuation.section.brackets.end.powershell
@@ -357,7 +362,7 @@ function Verb-Noun {
357362 # ^ meta.attribute punctuation.section.group.end
358363 # ^ meta.attribute punctuation.section.brackets.end
359364 [string ]
360- # ^^^^^^^^^^^^^^^ meta.block.powershell meta.group .powershell
365+ # ^^^^^^^^^^^^^^^ meta.function .powershell
361366# ^ punctuation.section.brackets.begin.powershell
362367# ^^^^^^ storage.type.powershell
363368# ^ punctuation.section.brackets.end.powershell
@@ -388,45 +393,61 @@ function Verb-Noun {
388393 # ^ comment.line punctuation.definition.comment
389394 # ^ comment.line
390395 [string ]
391- # ^^^^^^^^^^^^^^^ meta.block.powershell meta.group .powershell
396+ # ^^^^^^^^^^^^^^^ meta.function .powershell
392397# ^ punctuation.section.brackets.begin.powershell
393398# ^^^^^^ storage.type.powershell
394399# ^ punctuation.section.brackets.end.powershell
395400 $Param5
396401 # <- punctuation.definition.variable
397402 # ^ variable.other.readwrite
398403 )
399- # <- punctuation.section.group.end
404+ # ^^^^^^^^ meta.function.powershell
405+ # ^ punctuation.section.block.end.powershell
400406
401407 Begin
402- # ^^^^^ keyword.context.block.begin
408+ # ^^^^^^^^ meta.function.powershell
409+ # ^^^^^ keyword.context.block.powershell
403410 {
411+ # ^^^^ meta.function.powershell
412+ # ^ punctuation.section.block.begin.powershell
404413 }
405414 Process {
406- # <- keyword.context.block.process
415+ # ^^^^^^^^^^^^ meta.function.powershell
416+ # ^^^^^^^ keyword.context.block.powershell
417+ # ^ punctuation.section.block.begin.powershell
407418 if ($pscmdlet.ShouldProcess (" Target" , " Operation" )) {
408- # <- keyword.control
409- # ^ punctuation.section.group.begin
410- # ^ punctuation.definition.variable
411- # ^^^^^^^^ variable.language
412- # ^^^^^^^^^^^^^ variable.function
413- # @@@@@@@@@@@@@ reference
414- # ^ punctuation.section.arguments.begin
415- # ^^^^^^^^ string.quoted.double
416- # ^ punctuation.separator
417- # ^^^^^^^^^^^ string.quoted.double
418- # ^ punctuation.section.arguments.end
419- # ^ punctuation.section.group.end
419+ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function.powershell
420+ # ^^ keyword.control.conditional.if.powershell
421+ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.group.powershell
422+ # ^ punctuation.section.group.begin.powershell
423+ # ^^^^^^^^^ variable.language.powershell
424+ # ^ punctuation.definition.variable.powershell
425+ # ^ punctuation.accessor.dot.powershell
426+ # ^^^^^^^^^^^^^ meta.function-call.powershell variable.function.powershell
427+ # @@@@@@@@@@@@@ reference
428+ # ^^^^^^^^^^^^^^^^^^^^^^^ meta.function-call.arguments.powershell
429+ # ^ punctuation.section.arguments.begin.powershell
430+ # ^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell
431+ # ^ punctuation.definition.string.begin.powershell
432+ # ^ punctuation.definition.string.end.powershell
433+ # ^ punctuation.separator.sequence.powershell
434+ # ^^^^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell
435+ # ^ punctuation.definition.string.begin.powershell
436+ # ^ punctuation.definition.string.end.powershell
437+ # ^ punctuation.section.arguments.end.powershell
438+ # ^ punctuation.section.group.end.powershell
439+ # ^ meta.block.powershell punctuation.section.braces.begin.powershell
420440 }
421441 }
422442 End {
423- # ^^^ keyword.context.block.end
443+ # ^^^^^^^^ meta.function.powershell
444+ # ^^^ keyword.context.block.powershell
445+ # ^ punctuation.section.block.begin.powershell
424446
425447 }
426448 clean { }
427- # ^^^^^^^^^^^^ meta.block.powershell
428- # ^^^^^ keyword.context.block.clean.powershell
429- # ^^^ meta.block.powershell
430- # ^ punctuation.section.braces.begin.powershell
431- # ^ punctuation.section.braces.end.powershell
449+ # ^^^^^^^^^^^^ meta.function.powershell
450+ # ^^^^^ keyword.context.block.powershell
451+ # ^ punctuation.section.block.begin.powershell
452+ # ^ punctuation.section.block.end.powershell
432453}
0 commit comments