From 1f1996cb0f76e0c3fd35a8f1e13717dc16b7b64f Mon Sep 17 00:00:00 2001 From: Leonard Hecker Date: Mon, 27 Apr 2026 19:36:25 +0200 Subject: [PATCH] lsh: Fix PowerShell keyword lists --- crates/lsh/definitions/powershell.lsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/lsh/definitions/powershell.lsh b/crates/lsh/definitions/powershell.lsh index 9af799f1ec0..cdcfb7e41a3 100644 --- a/crates/lsh/definitions/powershell.lsh +++ b/crates/lsh/definitions/powershell.lsh @@ -49,13 +49,13 @@ pub fn powershell() { else if /"/ { yield string; break; } await input; } - } else if /(?i:function|param|class|enum|cmdletbinding|static)/ { + } else if /(?i:begin|class|clean|data|define|dynamicparam|end|enum|filter|from|function|hidden|in|param|process|static|using|var)/ { if /\w+/ { yield other; } else { yield keyword.other; } - } else if /(?i:elseif|else|if|for(each)?|switch|default|throw|try|catch|finally|return)/ { + } else if /(?i:break|continue|do|elseif|else|exit|foreach|for|if|return|switch|throw|trap|try|catch|finally|until|while)/ { if /\w+/ { yield other; } else {