diff --git a/Indentation.tmPreferences b/Indentation.tmPreferences index 7406497..5759b67 100644 --- a/Indentation.tmPreferences +++ b/Indentation.tmPreferences @@ -10,6 +10,8 @@ unIndentedLinePattern "@ + decreaseIndentPattern + ^(.*\*/)?\s*\}[;\s]*(?:$|else\b|elseif\b) diff --git a/Tests/syntax_test_PowerShell.ps1 b/Tests/syntax_test_PowerShell.ps1 index 119d609..db08a45 100644 --- a/Tests/syntax_test_PowerShell.ps1 +++ b/Tests/syntax_test_PowerShell.ps1 @@ -869,7 +869,7 @@ function Some.other.function{} FUNCTION MyFunction2 {} # <- storage.type # ^^^^^^^^^^^ entity.name.function -# @@@@@@@@@@ definition +# @@@@@@@@@@@ definition # ^ punctuation.section.braces.begin # ^ punctuation.section.braces.end function New-File { } diff --git a/Tests/syntax_test_reindent.ps1 b/Tests/syntax_test_reindent.ps1 index 5c99463..b256230 100644 --- a/Tests/syntax_test_reindent.ps1 +++ b/Tests/syntax_test_reindent.ps1 @@ -11,3 +11,11 @@ Function Get-ForegroundWindow { } Get-ForegroundWindow + +if ($true) { + Write-Host 'test' +} elseif ($false) { + Write-Host 'test2' +} else { + Write-Host 'test3' +}