File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 388388 <key >commentLine </key >
389389 <dict >
390390 <key >begin </key >
391- <string >(?< ![`\\-])# </string >
391+ <string >(?< ![`\\-])(#)#* </string >
392392 <key >captures </key >
393393 <dict >
394- <key >0 </key >
394+ <key >1 </key >
395395 <dict >
396396 <key >name </key >
397397 <string >punctuation.definition.comment.powershell </string >
556556 <string >keyword.operator.documentation.powershell </string >
557557 </dict >
558558 </dict >
559+ <key >comment </key >
560+ <string >these embedded doc keywords do not support arguments, must be the only thing on the line </string >
559561 <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 >
561563 <key >name </key >
562564 <string >comment.documentation.embedded.powershell </string >
563565 </dict >
580582 <string >keyword.operator.documentation.powershell </string >
581583 </dict >
582584 </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 >
583587 <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 >
585589 <key >name </key >
586590 <string >comment.documentation.embedded.powershell </string >
587591 </dict >
You can’t perform that action at this time.
0 commit comments