Skip to content

Commit d7de37e

Browse files
Add missing markdown scope facets (#2848)
1 parent 491c106 commit d7de37e

File tree

2 files changed

+172
-1
lines changed

2 files changed

+172
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
* hello
2+
* stuff
3+
---
4+
5+
[Content] =
6+
[Removal] =
7+
[Domain] = 0:0-1:7
8+
>-------
9+
0| * hello
10+
1| * stuff
11+
-------<
12+
13+
[Insertion delimiter] = " "

packages/common/src/scopeSupportFacets/markdown.ts

Lines changed: 159 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
22
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
33

4-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
54
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;
65

76
export const markdownScopeSupport: LanguageScopeSupportFacetMap = {
@@ -14,5 +13,164 @@ export const markdownScopeSupport: LanguageScopeSupportFacetMap = {
1413

1514
notebookCell: supported,
1615
"interior.cell": supported,
16+
1717
"collectionItem.unenclosed": supported,
18+
list: supported,
19+
20+
// Unsupported
21+
"textFragment.comment.line": unsupported,
22+
"textFragment.comment.block": unsupported,
23+
24+
// Not applicable
25+
26+
anonymousFunction: notApplicable,
27+
"argument.actual": notApplicable,
28+
"argument.actual.constructor": notApplicable,
29+
"argument.actual.constructor.iteration": notApplicable,
30+
"argument.actual.iteration": notApplicable,
31+
"argument.actual.method": notApplicable,
32+
"argument.actual.method.iteration": notApplicable,
33+
"argument.formal": notApplicable,
34+
"argument.formal.constructor": notApplicable,
35+
"argument.formal.constructor.iteration": notApplicable,
36+
"argument.formal.iteration": notApplicable,
37+
"argument.formal.method": notApplicable,
38+
"argument.formal.method.iteration": notApplicable,
39+
attribute: notApplicable,
40+
"branch.if": notApplicable,
41+
"branch.if.iteration": notApplicable,
42+
"branch.loop": notApplicable,
43+
"branch.switchCase": notApplicable,
44+
"branch.switchCase.iteration": notApplicable,
45+
"branch.ternary": notApplicable,
46+
"branch.try": notApplicable,
47+
"branch.try.iteration": notApplicable,
48+
class: notApplicable,
49+
"class.iteration.block": notApplicable,
50+
"class.iteration.document": notApplicable,
51+
className: notApplicable,
52+
"className.iteration.block": notApplicable,
53+
"className.iteration.document": notApplicable,
54+
"collectionItem.unenclosed.iteration": notApplicable,
55+
command: notApplicable,
56+
"condition.doWhile": notApplicable,
57+
"condition.for": notApplicable,
58+
"condition.if": notApplicable,
59+
"condition.switchCase": notApplicable,
60+
"condition.switchCase.iteration": notApplicable,
61+
"condition.ternary": notApplicable,
62+
"condition.while": notApplicable,
63+
disqualifyDelimiter: notApplicable,
64+
element: notApplicable,
65+
endTag: notApplicable,
66+
environment: notApplicable,
67+
fieldAccess: notApplicable,
68+
functionCall: notApplicable,
69+
"functionCall.constructor": notApplicable,
70+
functionCallee: notApplicable,
71+
"functionCallee.constructor": notApplicable,
72+
functionName: notApplicable,
73+
"functionName.constructor": notApplicable,
74+
"functionName.iteration.block": notApplicable,
75+
"functionName.iteration.document": notApplicable,
76+
"functionName.method": notApplicable,
77+
"functionName.method.iteration.class": notApplicable,
78+
ifStatement: notApplicable,
79+
"interior.class": notApplicable,
80+
"interior.command": notApplicable,
81+
"interior.element": notApplicable,
82+
"interior.function": notApplicable,
83+
"interior.if": notApplicable,
84+
"interior.lambda": notApplicable,
85+
"interior.loop": notApplicable,
86+
"interior.resource": notApplicable,
87+
"interior.switchCase": notApplicable,
88+
"interior.ternary": notApplicable,
89+
"interior.try": notApplicable,
90+
"key.attribute": notApplicable,
91+
"key.mapPair": notApplicable,
92+
"key.mapPair.iteration": notApplicable,
93+
map: notApplicable,
94+
"name.argument.actual": notApplicable,
95+
"name.argument.actual.iteration": notApplicable,
96+
"name.argument.formal": notApplicable,
97+
"name.argument.formal.constructor": notApplicable,
98+
"name.argument.formal.constructor.iteration": notApplicable,
99+
"name.argument.formal.iteration": notApplicable,
100+
"name.argument.formal.method": notApplicable,
101+
"name.argument.formal.method.iteration": notApplicable,
102+
"name.assignment": notApplicable,
103+
"name.assignment.pattern": notApplicable,
104+
"name.class": notApplicable,
105+
"name.constructor": notApplicable,
106+
"name.field": notApplicable,
107+
"name.foreach": notApplicable,
108+
"name.function": notApplicable,
109+
"name.iteration.block": notApplicable,
110+
"name.iteration.document": notApplicable,
111+
"name.method": notApplicable,
112+
"name.resource": notApplicable,
113+
"name.resource.iteration": notApplicable,
114+
"name.variable": notApplicable,
115+
"name.variable.pattern": notApplicable,
116+
namedFunction: notApplicable,
117+
"namedFunction.constructor": notApplicable,
118+
"namedFunction.iteration.block": notApplicable,
119+
"namedFunction.iteration.document": notApplicable,
120+
"namedFunction.method": notApplicable,
121+
"namedFunction.method.iteration.class": notApplicable,
122+
pairDelimiter: notApplicable,
123+
regularExpression: notApplicable,
124+
startTag: notApplicable,
125+
statement: notApplicable,
126+
"statement.class": notApplicable,
127+
"statement.iteration.block": notApplicable,
128+
"statement.iteration.document": notApplicable,
129+
"string.multiLine": notApplicable,
130+
"string.singleLine": notApplicable,
131+
switchStatementSubject: notApplicable,
132+
tags: notApplicable,
133+
"textFragment.element": notApplicable,
134+
"textFragment.string.multiLine": notApplicable,
135+
"textFragment.string.singleLine": notApplicable,
136+
"type.alias": notApplicable,
137+
"type.argument.formal": notApplicable,
138+
"type.argument.formal.constructor": notApplicable,
139+
"type.argument.formal.constructor.iteration": notApplicable,
140+
"type.argument.formal.iteration": notApplicable,
141+
"type.argument.formal.method": notApplicable,
142+
"type.argument.formal.method.iteration": notApplicable,
143+
"type.cast": notApplicable,
144+
"type.class": notApplicable,
145+
"type.enum": notApplicable,
146+
"type.field": notApplicable,
147+
"type.field.iteration": notApplicable,
148+
"type.foreach": notApplicable,
149+
"type.interface": notApplicable,
150+
"type.return": notApplicable,
151+
"type.typeArgument": notApplicable,
152+
"type.typeArgument.iteration": notApplicable,
153+
"type.variable": notApplicable,
154+
"value.argument.actual": notApplicable,
155+
"value.argument.actual.iteration": notApplicable,
156+
"value.argument.formal": notApplicable,
157+
"value.argument.formal.constructor": notApplicable,
158+
"value.argument.formal.constructor.iteration": notApplicable,
159+
"value.argument.formal.iteration": notApplicable,
160+
"value.argument.formal.method": notApplicable,
161+
"value.argument.formal.method.iteration": notApplicable,
162+
"value.assignment": notApplicable,
163+
"value.attribute": notApplicable,
164+
"value.field": notApplicable,
165+
"value.foreach": notApplicable,
166+
"value.mapPair": notApplicable,
167+
"value.mapPair.iteration": notApplicable,
168+
"value.resource": notApplicable,
169+
"value.resource.iteration": notApplicable,
170+
"value.return": notApplicable,
171+
"value.return.lambda": notApplicable,
172+
"value.typeAlias": notApplicable,
173+
"value.variable": notApplicable,
174+
"value.variable.pattern": notApplicable,
175+
"value.yield": notApplicable,
18176
};

0 commit comments

Comments
 (0)