Skip to content

Commit 5a1cec7

Browse files
committed
Add scope facet support for Haskell
1 parent accfb9a commit 5a1cec7

File tree

2 files changed

+95
-0
lines changed

2 files changed

+95
-0
lines changed
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
/* eslint-disable @typescript-eslint/naming-convention */
2+
3+
import {
4+
LanguageScopeSupportFacetMap,
5+
ScopeSupportFacetLevel,
6+
} from "./scopeSupportFacets.types";
7+
8+
const { supported, notApplicable } = ScopeSupportFacetLevel;
9+
10+
export const haskellScopeSupport: LanguageScopeSupportFacetMap = {
11+
command: notApplicable,
12+
13+
element: notApplicable,
14+
tags: notApplicable,
15+
startTag: notApplicable,
16+
endTag: notApplicable,
17+
attribute: notApplicable,
18+
19+
list: notApplicable,
20+
map: notApplicable,
21+
ifStatement: notApplicable,
22+
regularExpression: notApplicable,
23+
switchStatementSubject: notApplicable,
24+
fieldAccess: notApplicable,
25+
26+
statement: notApplicable,
27+
"statement.iteration.document": notApplicable,
28+
"statement.iteration.block": notApplicable,
29+
30+
class: notApplicable,
31+
className: notApplicable,
32+
namedFunction: notApplicable,
33+
"namedFunction.method": notApplicable,
34+
anonymousFunction: notApplicable,
35+
functionName: notApplicable,
36+
37+
functionCall: notApplicable,
38+
"functionCall.constructor": notApplicable,
39+
functionCallee: notApplicable,
40+
"functionCallee.constructor": notApplicable,
41+
42+
"argument.actual": notApplicable,
43+
"argument.actual.iteration": notApplicable,
44+
"argument.formal": notApplicable,
45+
"argument.formal.iteration": notApplicable,
46+
47+
"comment.line": notApplicable,
48+
"comment.block": notApplicable,
49+
50+
"string.singleLine": notApplicable,
51+
"string.multiLine": notApplicable,
52+
53+
"branch.if": notApplicable,
54+
"branch.if.iteration": notApplicable,
55+
"branch.try": notApplicable,
56+
"branch.switchCase": notApplicable,
57+
"branch.switchCase.iteration": notApplicable,
58+
"branch.ternary": notApplicable,
59+
60+
"condition.if": notApplicable,
61+
"condition.while": notApplicable,
62+
"condition.doWhile": notApplicable,
63+
"condition.for": notApplicable,
64+
"condition.ternary": notApplicable,
65+
"condition.switchCase": notApplicable,
66+
67+
"name.assignment": notApplicable,
68+
"name.assignment.pattern": notApplicable,
69+
"name.foreach": notApplicable,
70+
"name.function": notApplicable,
71+
"name.class": notApplicable,
72+
"name.field": notApplicable,
73+
74+
"key.attribute": notApplicable,
75+
"key.mapPair": notApplicable,
76+
"key.mapPair.iteration": notApplicable,
77+
78+
"value.assignment": notApplicable,
79+
"value.mapPair": notApplicable,
80+
"value.mapPair.iteration": notApplicable,
81+
"value.attribute": notApplicable,
82+
"value.foreach": notApplicable,
83+
"value.return": notApplicable,
84+
"value.return.lambda": notApplicable,
85+
"value.field": notApplicable,
86+
87+
"type.assignment": notApplicable,
88+
"type.formalParameter": notApplicable,
89+
"type.return": notApplicable,
90+
"type.field": notApplicable,
91+
"type.foreach": notApplicable,
92+
"type.interface": notApplicable,
93+
};

packages/common/src/scopeSupportFacets/languageScopeSupport.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { cppScopeSupport } from "./cpp";
55
import { csharpScopeSupport } from "./csharp";
66
import { cssScopeSupport } from "./css";
77
import { goScopeSupport } from "./go";
8+
import { haskellScopeSupport } from "./haskell";
89
import { htmlScopeSupport } from "./html";
910
import { javaScopeSupport } from "./java";
1011
import { javascriptScopeSupport } from "./javascript";
@@ -36,6 +37,7 @@ export const languageScopeSupport: StringRecord<LanguageScopeSupportFacetMap> =
3637
csharp: csharpScopeSupport,
3738
css: cssScopeSupport,
3839
go: goScopeSupport,
40+
haskell: haskellScopeSupport,
3941
html: htmlScopeSupport,
4042
java: javaScopeSupport,
4143
javascript: javascriptScopeSupport,

0 commit comments

Comments
 (0)