Commits

Ethan J. Brown  committed fc54d50

Make brace matching for 'captures' lazy

Greedy pattern was causing issues in single line scriptblocks
where string interpolation with braces is used

An example of where this applies: 

```powershell
if ($true) { "${Env:\Foo}" }
```

  • Participants
  • Parent commits de3186e

Comments (0)

Files changed (1)

File Support/PowershellSyntax.JSON-tmLanguage

 							"name": "storage.modifier.scope.powershell"
 						}
 					},
-					"match": "(?i:(\\$)(\\{(?:(private|script|global):)?.+\\}))"
+					"match": "(?i:(\\$)(\\{(?:(private|script|global):)?.+?\\}))"
 				}
 			]
 		}