Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PowerShellSyntax.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@
</dict>
</dict>
<key>match</key>
<string>(?i:\s*(\.)(COMPONENT|DESCRIPTION|EXAMPLE|EXTERNALHELP|FORWARDHELPCATEGORY|FORWARDHELPTARGETNAME|FUNCTIONALITY|INPUTS|LINK|NOTES|OUTPUTS|REMOTEHELPRUNSPACE|ROLE|SYNOPSIS))</string>
<string>^(?i:(?:\s*|#)+(\.)(COMPONENT|DESCRIPTION|EXAMPLE|EXTERNALHELP|FORWARDHELPCATEGORY|FORWARDHELPTARGETNAME|FUNCTIONALITY|INPUTS|LINK|NOTES|OUTPUTS|REMOTEHELPRUNSPACE|ROLE|SYNOPSIS))</string>
<key>name</key>
<string>comment.documentation.embedded.powershell</string>
</dict>
Expand Down
3 changes: 3 additions & 0 deletions spec/testfiles/syntax_test_Function.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ using module Microsoft.PowerShell.Management
# <- constant.string.documentation.powershell
# ^ keyword.operator.documentation.powershell
The functionality that best describes this cmdlet

This should not be considered documentaton -> .role
# ^ not:keyword.operator.documentation.powershell
#>
# <- punctuation.definition.comment.block.end.powershell
function Verb-Noun {
Expand Down