Skip to content

Commit 7d179b3

Browse files
committed
Move some reserved words to a not-in-use section
1 parent 7daa98a commit 7d179b3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

PowerShell.sublime-syntax

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@ contexts:
9898
- match: \b(?i:where(?!-object)){{kebab_break}}
9999
scope: keyword.control.conditional.select.powershell
100100

101-
# Declarations
102-
- match: \b(?i:var){{kebab_break}}
103-
scope: keyword.declaration.variable.powershell
104-
105101
expressions:
106102
# Meta
107103
- include: labels
@@ -128,6 +124,13 @@ contexts:
128124
scope: variable.other.object.powershell
129125
push: members
130126

127+
# "Reserved for future use"
128+
# https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_reserved_words
129+
- match: \b(?i:define|from){{kebab_break}}
130+
scope: keyword.control.powershell
131+
- match: \b(?i:var){{kebab_break}}
132+
scope: keyword.declaration.variable.powershell
133+
131134
# Uncategorized keywords
132135
- match: \b(?i:data|default|define|from|in|inlinescript|parallel|sequence){{kebab_break}}
133136
scope: keyword.control.powershell

0 commit comments

Comments
 (0)