Skip to content

Commit fa4de92

Browse files
committed
Extract C# identifiers to a variable
1 parent 649687a commit fa4de92

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

PowerShell.sublime-syntax

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,20 +300,20 @@ contexts:
300300

301301
inside-using-namespace:
302302
- include: pop-eol
303-
- match: \p{L}[\p{L}\p{N}]+(\.)
303+
- match: '{{identifier_csharp}}(\.)'
304304
scope: meta.path.powershell
305305
captures:
306306
1: punctuation.accessor.dot.powershell
307-
- match: \p{L}[\p{L}\p{N}]+
307+
- match: '{{identifier_csharp}}'
308308
scope: meta.path.powershell
309309

310310
inside-using-module:
311311
- include: pop-eol
312-
- match: \p{L}[\p{L}\p{N}]+(\.)
312+
- match: '{{identifier_csharp}}(\.)'
313313
scope: meta.path.powershell
314314
captures:
315315
1: punctuation.accessor.dot.powershell
316-
- match: \p{L}[\p{L}\p{N}]+
316+
- match: '{{identifier_csharp}}'
317317
scope: meta.path.powershell support.type.powershell
318318

319319
###[ CLASSES ]#################################################################
@@ -1082,6 +1082,7 @@ variables:
10821082
identifier_simple: '[\p{L}\p{Nd}_?]+'
10831083
identifier_special: '[^}]*[^}`]'
10841084
identifier_function: '[\p{L}\p{Nd}_.-]+'
1085+
identifier_csharp: '[\p{L}_][\p{L}\p{Nd}_]*'
10851086
var_lookahead: |-
10861087
(?x: (?=
10871088
\$[$^{]

0 commit comments

Comments
 (0)