mirror of
https://github.com/PowerShell/PSReadLine
synced 2026-06-08 12:12:13 +00:00
Add comment in SamplePSReadLineProfile.ps1 (#1712)
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user