Skip to content

Commit 3bf717c

Browse files
committed
(r) clean up facet list
1 parent 2642bf6 commit 3bf717c

1 file changed

Lines changed: 52 additions & 144 deletions

File tree

  • packages/common/src/scopeSupportFacets

packages/common/src/scopeSupportFacets/r.ts

Lines changed: 52 additions & 144 deletions
Original file line numberDiff line numberDiff line change
@@ -10,180 +10,88 @@ export const rScopeSupport: LanguageScopeSupportFacetMap = {
1010
"argument.actual": supported,
1111
"argumentList.formal": supported,
1212
"condition.if": supported,
13-
"condition.while": unsupported,
14-
1513
"namedFunction": supported,
1614
"anonymousFunction": supported,
1715
"functionName": supported,
1816
"functionCall": supported,
1917
"functionCallee": supported,
20-
2118
"name.assignment": supported,
22-
"name.assignment.pattern": notApplicable,
2319
"name.variable": supported,
2420
"value.assignment": supported,
2521
"value.variable": supported,
26-
"value.variable.pattern": notApplicable,
27-
28-
// "interior.function": unsupported,
29-
// "interior.lambda": unsupported,
30-
// "interior.if": unsupported,
31-
// "interior.try": unsupported,
3222

33-
command: notApplicable,
34-
element: notApplicable,
35-
startTag: notApplicable,
36-
endTag: notApplicable,
37-
tags: notApplicable,
23+
"interior.class": unsupported,
24+
"condition.while": unsupported,
25+
"interior.function": unsupported,
26+
"interior.lambda": unsupported,
27+
"interior.if": unsupported,
28+
"interior.try": unsupported,
3829
attribute: unsupported,
3930
environment: unsupported,
40-
// Not applicable for base language but might be useful for markdown or quarto
41-
section: notApplicable,
42-
"section.iteration.document": notApplicable,
43-
"section.iteration.parent": notApplicable,
44-
notebookCell: notApplicable,
45-
4631
map: unsupported,
4732
regularExpression: unsupported,
4833
switchStatementSubject: unsupported,
4934
fieldAccess: unsupported,
5035
"string.singleLine": unsupported,
5136
"string.multiLine": unsupported,
52-
53-
// "statement.class"
54-
// "statement.iteration.document"
55-
// "statement.iteration.block"
37+
"statement.class": unsupported,
5638
class: unsupported,
57-
// "class.iteration.document"
58-
// "class.iteration.block"
5939
className: unsupported,
60-
// "className.iteration.document"
61-
// "className.iteration.block"
62-
// "namedFunction.method"
63-
// "namedFunction.method.iteration.class"
64-
// "namedFunction.constructor"
65-
// "namedFunction.iteration.block"
66-
// "namedFunction.iteration.document"
67-
// "functionName.method"
68-
// "functionName.method.iteration.class"
69-
// "functionName.constructor"
70-
// "functionName.iteration.block"
71-
// "functionName.iteration.document"
72-
// "functionCall.constructor"
73-
// "functionCallee.constructor"
74-
// "argument.actual"
75-
// "argument.actual.iteration"
76-
// "argument.actual.method"
77-
// "argument.actual.method.iteration"
78-
// "argument.actual.constructor"
79-
// "argument.actual.constructor.iteration"
80-
// "argument.formal"
81-
// "argument.formal.iteration"
82-
// "argument.formal.method"
83-
// "argument.formal.method.iteration"
84-
// "argument.formal.constructor"
85-
// "argument.formal.constructor.iteration"
86-
// "argument.formal.lambda"
87-
// "argument.formal.lambda.iteration"
88-
// "argumentList.formal.method"
89-
// "argumentList.formal.constructor"
90-
// "argumentList.formal.lambda"
91-
// "textFragment.comment.line"
92-
// "textFragment.comment.block"
93-
// "textFragment.string.singleLine"
94-
// "textFragment.string.multiLine"
95-
// "textFragment.element"
96-
// disqualifyDelimiter
97-
// pairDelimiter
9840
"branch.if": unsupported,
99-
// "branch.loop"
100-
// "branch.if.iteration"
101-
// "branch.try"
102-
// "branch.try.iteration"
103-
// "branch.switchCase"
104-
// "branch.switchCase.iteration"
105-
// "branch.ternary"
106-
// "collectionItem.unenclosed"
107-
// "collectionItem.unenclosed.iteration"
108-
// "condition.if"
109-
// "condition.while"
110-
// "condition.doWhile"
111-
// "condition.for"
112-
// "condition.ternary"
113-
// "condition.switchCase"
114-
// "condition.switchCase.iteration"
115-
// "name.assignment"
116-
// "name.assignment.pattern"
117-
// "name.variable"
118-
// "name.variable.pattern"
119-
// "name.foreach"
120-
// "name.function"
121-
// "name.method"
122-
// "name.constructor"
123-
// "name.class"
124-
// "name.field"
125-
// "name.resource"
126-
// "name.resource.iteration"
127-
// "name.argument.actual"
128-
// "name.argument.actual.iteration"
129-
// "name.argument.formal"
130-
// "name.argument.formal.iteration"
131-
// "name.argument.formal.method"
132-
// "name.argument.formal.method.iteration"
133-
// "name.argument.formal.constructor"
134-
// "name.argument.formal.constructor.iteration"
135-
// "name.iteration.block"
136-
// "name.iteration.document"
137-
// "key.attribute"
138-
// "key.mapPair"
139-
// "key.mapPair.iteration"
140-
// "value.mapPair"
141-
// "value.mapPair.iteration"
142-
// "value.foreach"
143-
// "value.attribute"
41+
"branch.loop": unsupported,
42+
"branch.if.iteration": unsupported,
43+
"branch.try": unsupported,
44+
"branch.try.iteration": unsupported,
45+
"branch.switchCase": unsupported,
46+
"branch.switchCase.iteration": unsupported,
47+
"branch.ternary": unsupported,
48+
"condition.for": unsupported,
49+
"condition.ternary": unsupported,
50+
"name.foreach": unsupported,
51+
"name.function": unsupported,
52+
"name.method": unsupported,
53+
"name.class": unsupported,
54+
"name.field": unsupported,
55+
"key.attribute": unsupported,
56+
"value.foreach": unsupported,
57+
"value.attribute": unsupported,
14458
"value.return": unsupported,
145-
// "value.return.lambda"
146-
// "value.field"
147-
// "value.yield"
148-
// "value.resource"
149-
// "value.resource.iteration"
150-
// "value.argument.formal"
151-
// "value.argument.formal.iteration"
152-
// "value.argument.actual"
153-
// "value.argument.actual.iteration"
154-
// "value.argument.formal.method"
155-
// "value.argument.formal.method.iteration"
156-
// "value.argument.formal.constructor"
157-
// "value.argument.formal.constructor.iteration"
158-
// "value.typeAlias": notApplicable,
159-
"type.variable": notApplicable,
59+
"interior.class": unsupported,
60+
61+
"interior.cell": notApplicable,
62+
"interior.command": notApplicable,
63+
"interior.element": notApplicable,
64+
"name.assignment.pattern": notApplicable,
65+
// Not applicable for base language but might be useful for markdown or quarto
66+
"section.iteration.document": notApplicable,
67+
"section.iteration.parent": notApplicable,
68+
"type.alias": notApplicable,
16069
"type.argument.formal": notApplicable,
70+
"type.argument.formal.constructor": notApplicable,
71+
"type.argument.formal.constructor.iteration": notApplicable,
16172
"type.argument.formal.iteration": notApplicable,
16273
"type.argument.formal.method": notApplicable,
16374
"type.argument.formal.method.iteration": notApplicable,
164-
"type.argument.formal.constructor": notApplicable,
165-
"type.argument.formal.constructor.iteration": notApplicable,
166-
"type.return": notApplicable,
75+
"type.cast": notApplicable,
76+
"type.class": notApplicable,
77+
"type.enum": notApplicable,
16778
"type.field": notApplicable,
16879
"type.field.iteration": notApplicable,
16980
"type.foreach": notApplicable,
17081
"type.interface": notApplicable,
171-
"type.enum": notApplicable,
172-
"type.class": notApplicable,
173-
"type.alias": notApplicable,
174-
"type.cast": notApplicable,
175-
"type.typeArgument": notApplicable,
176-
"type.typeArgument.iteration": notApplicable,
17782
"type.resource": notApplicable,
17883
"type.resource.iteration": notApplicable,
179-
"interior.element": notApplicable,
180-
"interior.command": notApplicable,
181-
"interior.cell": notApplicable,
182-
"interior.class": unsupported,
183-
// "interior.switchCase"
184-
// "interior.ternary"
185-
// "interior.loop"
186-
// "interior.resource"
187-
188-
"name.foreach": unsupported,
84+
"type.return": notApplicable,
85+
"type.typeArgument": notApplicable,
86+
"type.typeArgument.iteration": notApplicable,
87+
"type.variable": notApplicable,
88+
"value.typeAlias": notApplicable,
89+
"value.variable.pattern": notApplicable,
90+
command: notApplicable,
91+
element: notApplicable,
92+
endTag: notApplicable,
93+
notebookCell: notApplicable,
94+
section: notApplicable,
95+
startTag: notApplicable,
96+
tags: notApplicable,
18997
};

0 commit comments

Comments
 (0)