Add comment in SamplePSReadLineProfile.ps1 (#1712)

This commit is contained in:
Sergey Vasin
2020-08-02 16:12:02 -07:00
committed by GitHub
parent 771af2802a
commit a873097a5e
+1
View File
@@ -201,6 +201,7 @@ Set-PSReadLineKeyHandler -Key '"',"'" `
return
}
# If cursor is at the start of a token, enclose it in quotes.
if ($token.Extent.StartOffset -eq $cursor) {
if ($token.Kind -eq [TokenKind]::Generic -or $token.Kind -eq [TokenKind]::Identifier -or
$token.Kind -eq [TokenKind]::Variable -or $token.TokenFlags.hasFlag([TokenFlags]::Keyword)) {