Skip to content

Commit 9c8fbe7

Browse files
committed
Name the anonymous member contexts
1 parent 9038901 commit 9c8fbe7

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

PowerShell.sublime-syntax

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -620,34 +620,33 @@ contexts:
620620
captures:
621621
1: meta.function-call.powershell support.function.constructor.powershell
622622
2: meta.function-call.arguments.powershell punctuation.section.arguments.begin.powershell
623-
push:
624-
- meta_content_scope: meta.function-call.arguments.powershell
625-
- match: \)
626-
scope: meta.function-call.arguments.powershell punctuation.section.arguments.end.powershell
627-
pop: 1
628-
- include: expressions
623+
push: inside-function-call-arguments
629624
- match: (\w+)(\()
630625
captures:
631626
1: meta.function-call.powershell variable.function.powershell
632627
2: meta.function-call.arguments.powershell punctuation.section.arguments.begin.powershell
633-
push:
634-
- meta_content_scope: meta.function-call.arguments.powershell
635-
- match: \)
636-
scope: meta.function-call.arguments.powershell punctuation.section.arguments.end.powershell
637-
pop: 1
638-
- include: expressions
628+
push: inside-function-call-arguments
639629
- match: \w+
640630
scope: variable.other.member.powershell
641631
- match: \[
642632
scope: punctuation.section.brackets.begin.powershell
643-
push:
644-
- meta_scope: meta.brackets.indexer.powershell
645-
- match: \]
646-
scope: punctuation.section.brackets.end.powershell
647-
pop: 1
648-
- include: expressions
633+
push: inside-indexer
649634
- include: immediately-pop
650635

636+
inside-function-call-arguments:
637+
- meta_content_scope: meta.function-call.arguments.powershell
638+
- match: \)
639+
scope: meta.function-call.arguments.powershell punctuation.section.arguments.end.powershell
640+
pop: 1
641+
- include: expressions
642+
643+
inside-indexer:
644+
- meta_scope: meta.brackets.indexer.powershell
645+
- match: \]
646+
scope: punctuation.section.brackets.end.powershell
647+
pop: 1
648+
- include: expressions
649+
651650
###[ GROUPS ]##################################################################
652651

653652
groups:

0 commit comments

Comments
 (0)