Skip to content

Commit d279e1d

Browse files
committed
fixup embed tests
1 parent 6497886 commit d279e1d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

PowerShell.sublime-syntax

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,20 +235,23 @@ contexts:
235235

236236
inside-add-type:
237237
- include: pop-eol
238+
238239
- match: '@"'
239240
scope: meta.string.interpolated.powershell string.quoted.double.powershell punctuation.definition.string.begin.powershell
240241
embed: scope:source.cs
241242
embed_scope: meta.string.interpolated.powershell string.quoted.double.powershell source.cs.embedded
242243
escape: ("@)
243244
escape_captures:
244-
1: meta.string.powershell string.quoted.single.powershell punctuation.definition.string.end.powershell
245+
1: meta.string.powershell string.quoted.double.powershell punctuation.definition.string.end.powershell
246+
245247
- match: "@'"
246248
scope: meta.string.powershell string.quoted.single.powershell punctuation.definition.string.begin.powershell
247249
embed: scope:source.cs
248250
embed_scope: meta.string.powershell string.quoted.single.powershell source.cs.embedded
249251
escape: ('@)
250252
escape_captures:
251253
1: meta.string.powershell string.quoted.single.powershell punctuation.definition.string.end.powershell
254+
252255
- include: expressions
253256

254257
###[ USINGS ]##################################################################

Tests/syntax_test_Add-Type.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,15 @@
1010
#^^^^^^^^^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell source.cs.embedded
1111
# ^^^^^ keyword.control.import.cs
1212
# ^^^^^^ meta.path.cs
13-
# ^ punctuation.terminator.statement.cs
1413
using System.Runtime.InteropServices;
1514
public class ClassGetForegroundWindow {
1615
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell source.cs.embedded
1716
# ^^^^^^ storage.modifier.access.cs
1817
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.class.cs
19-
# ^^^^^ keyword.declaration.class.cs
2018
# ^^^^^^^^^^^^^^^^^^^^^^^^ entity.name.class.cs
2119
# ^ meta.class.body.cs meta.block.cs punctuation.section.block.begin.cs
2220
[DllImport("user32.dll")]
2321
public static extern IntPtr GetForegroundWindow();
2422
}
2523
"@
24+
#^ meta.string.powershell string.quoted.double.powershell punctuation.definition.string.end.powershell - source.cs

0 commit comments

Comments
 (0)