From b00fc7cbea36092885faf17536870440ef3357f6 Mon Sep 17 00:00:00 2001 From: omniomi Date: Mon, 18 Jun 2018 14:54:16 -0600 Subject: [PATCH 1/2] update tests. --- spec/testfiles/syntax_test_Function.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/testfiles/syntax_test_Function.ps1 b/spec/testfiles/syntax_test_Function.ps1 index 6076bff..c297d21 100644 --- a/spec/testfiles/syntax_test_Function.ps1 +++ b/spec/testfiles/syntax_test_Function.ps1 @@ -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 { From 6d8d7e71dfe356c5291a2875cf91a06ffe20e7e9 Mon Sep 17 00:00:00 2001 From: omniomi Date: Mon, 18 Jun 2018 14:58:26 -0600 Subject: [PATCH 2/2] Fix #119 --- PowerShellSyntax.tmLanguage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerShellSyntax.tmLanguage b/PowerShellSyntax.tmLanguage index e4c334f..93ace13 100644 --- a/PowerShellSyntax.tmLanguage +++ b/PowerShellSyntax.tmLanguage @@ -626,7 +626,7 @@ match - (?i:\s*(\.)(COMPONENT|DESCRIPTION|EXAMPLE|EXTERNALHELP|FORWARDHELPCATEGORY|FORWARDHELPTARGETNAME|FUNCTIONALITY|INPUTS|LINK|NOTES|OUTPUTS|REMOTEHELPRUNSPACE|ROLE|SYNOPSIS)) + ^(?i:(?:\s*|#)+(\.)(COMPONENT|DESCRIPTION|EXAMPLE|EXTERNALHELP|FORWARDHELPCATEGORY|FORWARDHELPTARGETNAME|FUNCTIONALITY|INPUTS|LINK|NOTES|OUTPUTS|REMOTEHELPRUNSPACE|ROLE|SYNOPSIS)) name comment.documentation.embedded.powershell