-
-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathhtml.ts
More file actions
179 lines (175 loc) · 6.9 KB
/
Copy pathhtml.ts
File metadata and controls
179 lines (175 loc) · 6.9 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
const { supported, notApplicable } = ScopeSupportFacetLevel;
export const htmlScopeSupport: LanguageScopeSupportFacetMap = {
"comment.block": supported,
"interior.element": supported,
"key.attribute": supported,
"string.singleLine": supported,
"textFragment.comment.block": supported,
"textFragment.element": supported,
"textFragment.string.singleLine": supported,
"value.attribute": supported,
attribute: supported,
element: supported,
endTag: supported,
startTag: supported,
tags: supported,
// Not applicable
"argument.actual.constructor.iteration": notApplicable,
"argument.actual.constructor": notApplicable,
"argument.actual.iteration": notApplicable,
"argument.actual.method.iteration": notApplicable,
"argument.actual.method": notApplicable,
"argument.actual": notApplicable,
"argument.formal.constructor.iteration": notApplicable,
"argument.formal.constructor": notApplicable,
"argument.formal.iteration": notApplicable,
"argument.formal.method.iteration": notApplicable,
"argument.formal.method": notApplicable,
"argument.formal": notApplicable,
"argument.formal.lambda": notApplicable,
"argument.formal.lambda.iteration": notApplicable,
"argumentList.formal": notApplicable,
"argumentList.formal.method": notApplicable,
"argumentList.formal.constructor": notApplicable,
"argumentList.formal.lambda": notApplicable,
"branch.if.iteration": notApplicable,
"branch.if": notApplicable,
"branch.loop": notApplicable,
"branch.switchCase.iteration": notApplicable,
"branch.switchCase": notApplicable,
"branch.ternary": notApplicable,
"branch.try.iteration": notApplicable,
"branch.try": notApplicable,
"class.iteration.block": notApplicable,
"class.iteration.document": notApplicable,
"className.iteration.block": notApplicable,
"className.iteration.document": notApplicable,
"collectionItem.unenclosed.iteration": notApplicable,
"collectionItem.unenclosed": notApplicable,
"comment.line": notApplicable,
"condition.doWhile": notApplicable,
"condition.for": notApplicable,
"condition.if": notApplicable,
"condition.switchCase.iteration": notApplicable,
"condition.switchCase": notApplicable,
"condition.ternary": notApplicable,
"condition.while": notApplicable,
"functionCall.constructor": notApplicable,
"functionCallee.constructor": notApplicable,
"functionName.constructor": notApplicable,
"functionName.iteration.block": notApplicable,
"functionName.iteration.document": notApplicable,
"functionName.method.iteration.class": notApplicable,
"functionName.method": notApplicable,
"interior.cell": notApplicable,
"interior.class": notApplicable,
"interior.command": notApplicable,
"interior.function": notApplicable,
"interior.if": notApplicable,
"interior.lambda": notApplicable,
"interior.loop": notApplicable,
"interior.resource": notApplicable,
"interior.switchCase": notApplicable,
"interior.ternary": notApplicable,
"interior.try": notApplicable,
"key.mapPair.iteration": notApplicable,
"key.mapPair": notApplicable,
"name.argument.actual.iteration": notApplicable,
"name.argument.actual": notApplicable,
"name.argument.formal.constructor.iteration": notApplicable,
"name.argument.formal.constructor": notApplicable,
"name.argument.formal.iteration": notApplicable,
"name.argument.formal.method.iteration": notApplicable,
"name.argument.formal.method": notApplicable,
"name.argument.formal": notApplicable,
"name.assignment.pattern": notApplicable,
"name.assignment": notApplicable,
"name.class": notApplicable,
"name.constructor": notApplicable,
"name.field": notApplicable,
"name.foreach": notApplicable,
"name.function": notApplicable,
"name.iteration.block": notApplicable,
"name.iteration.document": notApplicable,
"name.method": notApplicable,
"name.resource.iteration": notApplicable,
"name.resource": notApplicable,
"name.variable.pattern": notApplicable,
"name.variable": notApplicable,
"namedFunction.constructor": notApplicable,
"namedFunction.iteration.block": notApplicable,
"namedFunction.iteration.document": notApplicable,
"namedFunction.method.iteration.class": notApplicable,
"namedFunction.method": notApplicable,
"section.iteration.document": notApplicable,
"section.iteration.parent": notApplicable,
"statement.class": notApplicable,
"statement.iteration.block": notApplicable,
"statement.iteration.document": notApplicable,
"string.multiLine": notApplicable,
"textFragment.comment.line": notApplicable,
"textFragment.string.multiLine": notApplicable,
"type.alias": notApplicable,
"type.argument.formal.constructor.iteration": notApplicable,
"type.argument.formal.constructor": notApplicable,
"type.argument.formal.iteration": notApplicable,
"type.argument.formal.method.iteration": notApplicable,
"type.argument.formal.method": notApplicable,
"type.argument.formal": notApplicable,
"type.cast": notApplicable,
"type.class": notApplicable,
"type.enum": notApplicable,
"type.field.iteration": notApplicable,
"type.field": notApplicable,
"type.foreach": notApplicable,
"type.interface": notApplicable,
"type.resource": notApplicable,
"type.resource.iteration": notApplicable,
"type.return": notApplicable,
"type.typeArgument.iteration": notApplicable,
"type.typeArgument": notApplicable,
"type.variable": notApplicable,
"value.argument.actual.iteration": notApplicable,
"value.argument.actual": notApplicable,
"value.argument.formal.constructor.iteration": notApplicable,
"value.argument.formal.constructor": notApplicable,
"value.argument.formal.iteration": notApplicable,
"value.argument.formal.method.iteration": notApplicable,
"value.argument.formal.method": notApplicable,
"value.argument.formal": notApplicable,
"value.assignment": notApplicable,
"value.field": notApplicable,
"value.foreach": notApplicable,
"value.mapPair.iteration": notApplicable,
"value.mapPair": notApplicable,
"value.resource.iteration": notApplicable,
"value.resource": notApplicable,
"value.return.lambda": notApplicable,
"value.return": notApplicable,
"value.typeAlias": notApplicable,
"value.variable.pattern": notApplicable,
"value.variable": notApplicable,
"value.yield": notApplicable,
anonymousFunction: notApplicable,
class: notApplicable,
className: notApplicable,
command: notApplicable,
disqualifyDelimiter: notApplicable,
environment: notApplicable,
fieldAccess: notApplicable,
functionCall: notApplicable,
functionCallee: notApplicable,
functionName: notApplicable,
ifStatement: notApplicable,
list: notApplicable,
map: notApplicable,
namedFunction: notApplicable,
notebookCell: notApplicable,
pairDelimiter: notApplicable,
regularExpression: notApplicable,
section: notApplicable,
statement: notApplicable,
switchStatementSubject: notApplicable,
};