branch: elpa/powershell
commit 1896077c84f8d9cc378eb398a1af406486a0e639
Author: NeoISE <[email protected]>
Commit: NeoISE <[email protected]>
added some new keywords from about_Language_Keywords under PowerShell v6
---
powershell.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/powershell.el b/powershell.el
index 0ff7d040a5b..261286331e5 100644
--- a/powershell.el
+++ b/powershell.el
@@ -313,10 +313,12 @@ The text is assumed to be `regexp-opt' output."
(defvar powershell-keywords
(concat "\\_<"
(regexp-opt
- '("begin" "break" "catch" "class" "continue" "data" "do" "default"
+ '("begin" "break" "catch" "class" "continue" "data" "define" "do"
"default"
"dynamicparam" "else" "elseif" "end" "enum" "exit" "filter"
"finally"
- "for" "foreach" "from" "function" "if" "in" "param" "process"
- "return" "switch" "throw" "trap" "try" "until" "where" "while")
+ "for" "foreach" "from" "function" "hidden" "if" "in" "param"
"process"
+ "return" "static" "switch" "throw" "trap" "try" "until" "using"
"var" "where" "while"
+ ;; Questionable, specific to workflow sessions
+ "inlinescript")
t)
"\\_>")
"PowerShell keywords.")