Skip to content

Commit 9f928fc

Browse files
committed
Move attributes into groups and script blocks
for Param and function metadata respectively
1 parent 14cfb9f commit 9f928fc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

PowerShell.sublime-syntax

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ contexts:
8383
- include: commands
8484
- include: constants
8585
- include: variables
86-
- include: attributes
8786
- include: using-directives
8887
- include: types
8988
- include: hashtables
@@ -259,7 +258,8 @@ contexts:
259258
- match: \b(?i:hidden|static)\b
260259
scope: storage.modifier.powershell
261260

262-
# TODO: Fix functions, so this doesn't nest here.
261+
# TODO: Fix functions, so these don't nest here.
262+
- include: attributes
263263
# Begin/Process/End/Clean
264264
- match: \b(?i:begin){{kebab_break}}
265265
scope: keyword.context.block.begin.powershell
@@ -565,6 +565,7 @@ contexts:
565565
- match: \)
566566
scope: punctuation.section.group.end.powershell
567567
pop: 1
568+
- include: attributes
568569
- include: expressions
569570

570571
arrays:

0 commit comments

Comments
 (0)