@@ -55,57 +55,63 @@ def getTestFilePath(self):
55
55
56
56
def getTokens (self ):
57
57
selectors = [
58
- "comment.block" ,
59
- "comment.documentation.embedded" ,
60
- "comment.line.number-sign" ,
61
- "constant.character.escape" ,
62
- "constant.language" ,
63
- "constant.numeric.hexadecimal" ,
64
- "constant.numeric.scientific" ,
65
- "constant.string.documentation" ,
66
- "entity.name" ,
67
- "entity.name.function.invocation" ,
68
- "entity.other" ,
69
- "entity.other.attribute-name" ,
70
- "entity.other.attribute.parameter" ,
71
- "interpolated.complex.source" ,
72
- "interpolated.simple.source" ,
73
- "keyword.control" ,
74
- "keyword.operator.assignment" ,
75
- "keyword.operator.bitwise" ,
76
- "keyword.operator.comparison" ,
77
- "keyword.operator.documentation" ,
78
- "keyword.operator.logical" ,
79
- "keyword.operator.math" ,
80
- "keyword.operator.other" ,
81
- "keyword.operator.range" ,
82
- "keyword.operator.redirection" ,
83
- "keyword.operator.string-format" ,
84
- "keyword.operator.unary" ,
85
- "keyword.other" ,
86
- "keyword.other.statement-separator" ,
87
- "meta" ,
88
- "meta.group.array-expression" ,
89
- "meta.group.complex.subexpression" ,
90
- "meta.scriptblock" ,
91
- "punctuation.end.definition.comment.block" ,
92
- "punctuation.start.definition.comment.block" ,
93
- #"source", # this scope represents the whole file
94
- "storage" ,
95
- "storage.modifier.scope" ,
96
- "string.quoted.double" ,
97
- "string.quoted.double.heredoc" ,
98
- "string.quoted.single" ,
99
- "string.quoted.single.heredoc" ,
100
- "support.constant" ,
101
- "support.constant.variable" ,
102
- "support.function" ,
103
- "support.variable.automatic" ,
104
- "support.variable.drive" ,
105
- "variable.language" ,
106
- "variable.other" ,
107
- "variable.other.normal" ,
108
- "variable.other.readwrite" ,
58
+ "comment.block.powershell" ,
59
+ "comment.documentation.embedded.powershell" ,
60
+ "comment.line.number-sign.powershell" ,
61
+ "constant.character.escape.powershell" ,
62
+ "constant.language.powershell" ,
63
+ "constant.numeric.hexadecimal.powershell" ,
64
+ "constant.numeric.scientific.powershell" ,
65
+ "constant.string.documentation.powershell" ,
66
+ "entity.name.function" ,
67
+ "entity.name.function " ,
68
+ "entity.name.function.invocation.powershell" ,
69
+ "entity.name.tag" ,
70
+ "entity.other.attribute-name" ,
71
+ "entity.other.attribute-name " ,
72
+ "entity.other.attribute-name.powershell" ,
73
+ "entity.other.attribute.parameter.powershell" ,
74
+ "interpolated.complex.source.powershell" ,
75
+ "interpolated.simple.source.powershell" ,
76
+ "keyword.control.powershell" ,
77
+ "keyword.operator.assignment.powershell" ,
78
+ "keyword.operator.bitwise.powershell" ,
79
+ "keyword.operator.comparison.powershell" ,
80
+ "keyword.operator.documentation.powershell" ,
81
+ "keyword.operator.logical.powershell" ,
82
+ "keyword.operator.math.powershell" ,
83
+ "keyword.operator.other.powershell" ,
84
+ "keyword.operator.range.powershell" ,
85
+ "keyword.operator.redirection.powershell" ,
86
+ "keyword.operator.string-format.powershell" ,
87
+ "keyword.operator.unary.powershell" ,
88
+ "keyword.other.powershell" ,
89
+ "keyword.other.statement-separator.powershell" ,
90
+ "meta.function" ,
91
+ "meta.group.array-expression.powershell" ,
92
+ "meta.group.complex.subexpression.powershell" ,
93
+ "meta.scriptblock.powershell" ,
94
+ "PowerShell" ,
95
+ "punctuation.end.definition.comment.block.powershell" ,
96
+ "punctuation.start.definition.comment.block.powershell" ,
97
+ "source.powershell" ,
98
+ "storage.modifier.scope.powershell" ,
99
+ "storage.type" ,
100
+ "storage.type.powershell" ,
101
+ "string.quoted.double.heredoc.powershell" ,
102
+ "string.quoted.double.powershell" ,
103
+ "string.quoted.single.heredoc.powershell" ,
104
+ "string.quoted.single.powershell" ,
105
+ "support.constant.automatic.powershell" ,
106
+ "support.constant.powershell" ,
107
+ "support.constant.variable.powershell" ,
108
+ "support.function.powershell" ,
109
+ "support.variable.automatic.powershell" ,
110
+ "support.variable.drive.powershell" ,
111
+ "variable.language.powershell" ,
112
+ "variable.other.normal.powershell" ,
113
+ "variable.other.powershell" ,
114
+ "variable.other.readwrite.powershell" ,
109
115
]
110
116
tokens = []
111
117
for selector in selectors :
0 commit comments