File tree Expand file tree Collapse file tree 8 files changed +106
-0
lines changed
common/src/scopeSupportFacets
cursorless-org-docs/src/docs/user/languages Expand file tree Collapse file tree 8 files changed +106
-0
lines changed Original file line number Diff line number Diff line change 1+ foo() {
2+ if (true) { }
3+ }
4+ ---
5+
6+ [Content] =
7+ [Domain] = 1:2-1:15
8+ >-------------<
9+ 1| if (true) { }
10+
11+ [Removal] = 1:0-1:15
12+ >---------------<
13+ 1| if (true) { }
14+
15+ [Leading delimiter] = 1:0-1:2
16+ >--<
17+ 1| if (true) { }
18+
19+ [Insertion delimiter] = "\n"
Original file line number Diff line number Diff line change 1+ final list = [1,2,3];
2+ ---
3+
4+ [Content] =
5+ [Domain] = 0:13-0:20
6+ >-------<
7+ 0| final list = [1,2,3];
8+
9+ [Removal] = 0:12-0:20
10+ >--------<
11+ 0| final list = [1,2,3];
12+
13+ [Leading delimiter] = 0:12-0:13
14+ >-<
15+ 0| final list = [1,2,3];
16+
17+ [Insertion delimiter] = " "
Original file line number Diff line number Diff line change 1+ final map = {
2+ 'hi': 1,
3+ };
4+ ---
5+
6+ [Content] =
7+ [Domain] = 0:14-2:3
8+ >-
9+ 0| final map = {
10+ 1| 'hi': 1,
11+ 2| };
12+ ---<
13+
14+ [Removal] = 0:13-2:3
15+ >--
16+ 0| final map = {
17+ 1| 'hi': 1,
18+ 2| };
19+ ---<
20+
21+ [Leading delimiter] = 0:13-0:14
22+ >-<
23+ 0| final map = {
24+
25+ [Insertion delimiter] = " "
Original file line number Diff line number Diff line change 1+ foo () {
2+ if (true ) {}
3+
4+ final list = [1 , 2 , 3 ];
5+
6+ final map = {
7+ 'hi' : 1 ,
8+ };
9+ }
Original file line number Diff line number Diff line change 1+ import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types" ;
2+ import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types" ;
3+
4+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
5+ const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel ;
6+
7+ export const dartScopeSupport : LanguageScopeSupportFacetMap = {
8+ ifStatement : supported ,
9+ list : supported ,
10+ map : supported ,
11+ } ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { clojureScopeSupport } from "./clojure";
44import { cppScopeSupport } from "./cpp" ;
55import { csharpScopeSupport } from "./csharp" ;
66import { cssScopeSupport } from "./css" ;
7+ import { dartScopeSupport } from "./dart" ;
78import { goScopeSupport } from "./go" ;
89import { htmlScopeSupport } from "./html" ;
910import { javaScopeSupport } from "./java" ;
@@ -35,6 +36,7 @@ export const languageScopeSupport: StringRecord<LanguageScopeSupportFacetMap> =
3536 cpp : cppScopeSupport ,
3637 csharp : csharpScopeSupport ,
3738 css : cssScopeSupport ,
39+ dart : dartScopeSupport ,
3840 go : goScopeSupport ,
3941 html : htmlScopeSupport ,
4042 java : javaScopeSupport ,
Original file line number Diff line number Diff line change 1+ import Language from " ./Language" ;
2+
3+ # dart
4+
5+ <Language languageId = " dart" ></Language >
Original file line number Diff line number Diff line change 1+
2+ ;; !! if () {}
3+ ;; ! ^^^^^^^^
4+ (if_statement) @ifStatement
5+
6+ ;; !! [ 0 ]
7+ ;; ! ^^^^^
8+ [
9+ (list_literal)
10+ (list_pattern)
11+ ] @list
12+
13+ ;; !! { value: 0 }
14+ ;; ! ^^^^^^^^^^^^
15+ [
16+ (set_or_map_literal)
17+ (map_pattern)
18+ ] @map
You can’t perform that action at this time.
0 commit comments