diff --git a/PowerShellSyntax.tmLanguage b/PowerShellSyntax.tmLanguage index 93ef5ea..cd918bd 100644 --- a/PowerShellSyntax.tmLanguage +++ b/PowerShellSyntax.tmLanguage @@ -242,7 +242,7 @@ match - (?<!\w|-|\.)((?i:begin|break|catch|continue|data|default|define|do|dynamicparam|else|elseif|end|exit|finally|for|from|if|in|inlinescript|parallel|param|process|return|switch|throw|trap|try|until|var|while)|%|\?)(?!\w) + (?<!\w|-|\.)((?i:begin|break|catch|continue|data|default|define|do|dynamicparam|else|elseif|end|exit|finally|for|from|if|in|inlinescript|parallel|param|process|return|sequence|switch|throw|trap|try|until|var|while)|%|\?)(?!\w) name keyword.control.powershell diff --git a/spec/testfiles/syntax_test_TheBigTestFile.ps1 b/spec/testfiles/syntax_test_TheBigTestFile.ps1 index 2dc245f..74288a8 100644 --- a/spec/testfiles/syntax_test_TheBigTestFile.ps1 +++ b/spec/testfiles/syntax_test_TheBigTestFile.ps1 @@ -1161,11 +1161,14 @@ workflow w1 {} # ^ entity.name.function.powershell # ^ punctuation.section.braces.begin.powershell # ^ punctuation.section.braces.end.powershell -Workflow work {} +Workflow work { sequence {} } # <- storage.type.powershell # ^ entity.name.function.powershell # ^ punctuation.section.braces.begin.powershell -# ^ punctuation.section.braces.end.powershell +# ^^^^^^^^ keyword.control.powershell +# ^ punctuation.section.braces.begin.powershell +# ^ punctuation.section.braces.end.powershell +# ^ punctuation.section.braces.end.powershell get-thing | Out-WithYou > $null # destroy # ^ ^ support.function.powershell # ^ keyword.operator.other.powershell