forked from SublimeText/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsyntax_test_DSC.ps1
More file actions
116 lines (107 loc) · 5.07 KB
/
syntax_test_DSC.ps1
File metadata and controls
116 lines (107 loc) · 5.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# SYNTAX TEST "Packages/PowerShell/PowerShell.sublime-syntax"
"<- Exit the imports context block"
Configuration MyDscConfiguration {
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function.powershell
# ^^^^^^^^^^^^^ keyword.declaration.function.powershell
# ^^^^^^^^^^^^^^^^^^ entity.name.function.powershell
# ^ punctuation.section.block.begin.powershell
Node "TEST-PC1" {
#^^^^^^^^^^^^^^^^^^^^^^^^ meta.function.powershell
# ^^^^ keyword.context.block.powershell
# ^^^^^^^^^^ meta.string.interpolated.powershell string.quoted.double.powershell
# ^ punctuation.definition.string.begin.powershell
# ^ punctuation.definition.string.end.powershell
# ^ punctuation.section.block.begin.powershell
WindowsFeature MyFeatureInstance {
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function.powershell
# ^^^^^^^^^^^^^^ keyword.other.powershell
# ^^^^^^^^^^^^^^^^^ entity.name.label.powershell
# ^ meta.block.powershell punctuation.section.braces.begin.powershell
Ensure = 'Present'
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function.powershell meta.block.powershell
# ^ keyword.operator.assignment.powershell
# ^^^^^^^^^ meta.string.powershell string.quoted.single.powershell
# ^ punctuation.definition.string.begin.powershell
# ^ punctuation.definition.string.end.powershell
Name = 'RSAT'
}
WindowsFeature My2ndFeatureInstance {
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function.powershell
# ^^^^^^^^^^^^^^ keyword.other.powershell
# ^^^^^^^^^^^^^^^^^^^^ entity.name.label.powershell
# ^ meta.block.powershell punctuation.section.braces.begin.powershell
Ensure = 'Present'
Name = 'Bitlocker'
}
#^^^^^^^^^^^^ meta.function.powershell meta.block.powershell
# ^ punctuation.section.braces.end.powershell
}
}
MyDscConfiguration
Configuration MyDscConfiguration
{
param
#^^^^^^^^^^^^ meta.function.powershell
# ^^^^^ keyword.declaration.parameter.powershell
(
[string[]]$ComputerName='localhost'
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function.powershell
# ^ punctuation.section.brackets.begin.powershell
# ^^^^^^ storage.type.powershell
# ^ punctuation.section.brackets.begin.powershell
# ^^ punctuation.section.brackets.end.powershell
# ^^^^^^^^^^^^^ variable.other.readwrite.powershell
# ^ punctuation.definition.variable.powershell
# ^ keyword.operator.assignment.powershell
# ^^^^^^^^^^^ meta.string.powershell string.quoted.single.powershell
# ^ punctuation.definition.string.begin.powershell
# ^ punctuation.definition.string.end.powershell
)
Node $ComputerName
{
WindowsFeature MyFeatureInstance
{
Ensure = 'Present'
Name = 'RSAT'
}
WindowsFeature My2ndFeatureInstance
{
Ensure = 'Present'
Name = 'Bitlocker'
}
}
}
MyDscConfiguration
Configuration MyDscConfiguration
{
Node @('localhost', 'Server01')
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function.powershell
# ^^^^ keyword.context.block.powershell
# ^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.group.array-expression.powershell
# ^ keyword.other.array.begin.powershell
# ^ punctuation.section.group.begin.powershell
# ^^^^^^^^^^^ meta.string.powershell string.quoted.single.powershell
# ^ punctuation.definition.string.begin.powershell
# ^ punctuation.definition.string.end.powershell
# ^ punctuation.separator.sequence.powershell
# ^^^^^^^^^^ meta.string.powershell string.quoted.single.powershell
# ^ punctuation.definition.string.begin.powershell
# ^ punctuation.definition.string.end.powershell
# ^ punctuation.section.group.end.powershell
{
WindowsFeature MyFeatureInstance
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function.powershell
# ^^^^^^^^^^^^^^ keyword.other.powershell
# ^^^^^^^^^^^^^^^^^ entity.name.label.powershell
{
Ensure = 'Present'
Name = 'RSAT'
}
WindowsFeature My2ndFeatureInstance
{
Ensure = 'Present'
Name = 'Bitlocker'
}
}
}
MyDscConfiguration