You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Editor and Version: VS Code: 1.26.0 (with manual tweaks)
Your primary theme: Dark+
Issue Description
Presently, the documentation keyword detection/scoping/theming fails on the following items:
# .keyword doesn't detect and scope
<# .keyword doesn't detect and scope
once inside a comment block, extra # separated by spaces allows the keyword to detect, but Get-Help doesn't seem to permit this.
once inside a comment block, extra characters after a keyword that doesn't accept arguments allows the keyword to detect, but Get-Help doesn't seem to permit this.
Screenshots
(Showing modified sample from file attached to #134)
Expected Behavior
Expected to match Get-Help's acceptance. However, that's much more difficult. Get-Help also accepts:
<##># <additional #s> .keyword
does not accept .keyword if the containing comment doesn't otherwise start at the beginning of a line
and has limited acceptance of consecutively spaced and required placement, that probably only script analysis can accurately report on.
Possible Fix
I think two changes could fix the easiest problems.
Change the match for 'commentEmbeddedDocs' to
(#\1 match)
Activity
msftrncs commentedon Aug 17, 2018
I want to point out that the project file, 'build.ps1' contains malformed help documentation.
.EXAMPLE Build.EXAMPLE TestThese both cause Get-Help to not display any of the comment help.
msftrncs commentedon May 9, 2019
This will be the one of the next items I'll contribute a PR for.
fix PowerShell#136,