File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 413
413
<key >commentLine </key >
414
414
<dict >
415
415
<key >begin </key >
416
- <string >(?< ![`\\-])# </string >
416
+ <string >(?< ![`\\-])(#)#* </string >
417
417
<key >captures </key >
418
418
<dict >
419
- <key >0 </key >
419
+ <key >1 </key >
420
420
<dict >
421
421
<key >name </key >
422
422
<string >punctuation.definition.comment.powershell </string >
581
581
<string >keyword.operator.documentation.powershell </string >
582
582
</dict >
583
583
</dict >
584
+ <key >comment </key >
585
+ <string >these embedded doc keywords do not support arguments, must be the only thing on the line </string >
584
586
<key >match </key >
585
- <string >^(?i:(? :\s?|#)+ (\.)(COMPONENT|DESCRIPTION|EXAMPLE|EXTERNALHELP|FORWARDHELPCATEGORY|FORWARDHELPTARGETNAME| FUNCTIONALITY|INPUTS|LINK|NOTES|OUTPUTS|REMOTEHELPRUNSPACE| ROLE|SYNOPSIS)) </string >
587
+ <string >(?:^|\G)(?i :\s* (\.)(COMPONENT|DESCRIPTION|EXAMPLE|FUNCTIONALITY|INPUTS|LINK|NOTES|OUTPUTS|ROLE|SYNOPSIS))\s*$ </string >
586
588
<key >name </key >
587
589
<string >comment.documentation.embedded.powershell </string >
588
590
</dict >
605
607
<string >keyword.operator.documentation.powershell </string >
606
608
</dict >
607
609
</dict >
610
+ <key >comment </key >
611
+ <string >these embedded doc keywords require arguments though the type required may be inconsistent, they may not all be able to use the same argument match </string >
608
612
<key >match </key >
609
- <string >(?i:\s? (\.)(PARAMETER|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP) \s+([a-z0-9-_]+)) </string >
613
+ <string >(?:^|\G)(? i:\s* (\.)(EXTERNALHELP|FORWARDHELP(?:CATEGORY|TARGETNAME)|PARAMETER|REMOTEHELPRUNSPACE)) \s+(.+?)\s*$ </string >
610
614
<key >name </key >
611
615
<string >comment.documentation.embedded.powershell </string >
612
616
</dict >
You can’t perform that action at this time.
0 commit comments