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 388
388
<key >commentLine </key >
389
389
<dict >
390
390
<key >begin </key >
391
- <string >(?< ![`\\-])# </string >
391
+ <string >(?< ![`\\-])(#)#* </string >
392
392
<key >captures </key >
393
393
<dict >
394
- <key >0 </key >
394
+ <key >1 </key >
395
395
<dict >
396
396
<key >name </key >
397
397
<string >punctuation.definition.comment.powershell </string >
556
556
<string >keyword.operator.documentation.powershell </string >
557
557
</dict >
558
558
</dict >
559
+ <key >comment </key >
560
+ <string >these embedded doc keywords do not support arguments, must be the only thing on the line </string >
559
561
<key >match </key >
560
- <string >^(?i:(? :\s?|#)+ (\.)(COMPONENT|DESCRIPTION|EXAMPLE|EXTERNALHELP|FORWARDHELPCATEGORY|FORWARDHELPTARGETNAME| FUNCTIONALITY|INPUTS|LINK|NOTES|OUTPUTS|REMOTEHELPRUNSPACE| ROLE|SYNOPSIS)) </string >
562
+ <string >(?:^|\G)(?i :\s* (\.)(COMPONENT|DESCRIPTION|EXAMPLE|FUNCTIONALITY|INPUTS|LINK|NOTES|OUTPUTS|ROLE|SYNOPSIS))\s*$ </string >
561
563
<key >name </key >
562
564
<string >comment.documentation.embedded.powershell </string >
563
565
</dict >
580
582
<string >keyword.operator.documentation.powershell </string >
581
583
</dict >
582
584
</dict >
585
+ <key >comment </key >
586
+ <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 >
583
587
<key >match </key >
584
- <string >(?i:\s? (\.)(PARAMETER|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP) \s+([a-z0-9-_]+)) </string >
588
+ <string >(?:^|\G)(? i:\s* (\.)(EXTERNALHELP|FORWARDHELP(?:CATEGORY|TARGETNAME)|PARAMETER|REMOTEHELPRUNSPACE)) \s+(.+?)\s*$ </string >
585
589
<key >name </key >
586
590
<string >comment.documentation.embedded.powershell </string >
587
591
</dict >
You can’t perform that action at this time.
0 commit comments