Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions data/fixtures/scopes/talon-list/comment.line.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Hello world
---

[Content] =
[Removal] =
[Domain] = 0:0-0:13
>-------------<
0| # Hello world

[Insertion delimiter] = "\n"
12 changes: 12 additions & 0 deletions data/fixtures/scopes/talon-list/key.mapPair.iteration.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

foo: bar

---

[Content] =
[Domain] = 0:0-2:0
>
0|
1| foo: bar
2|
<
14 changes: 14 additions & 0 deletions data/fixtures/scopes/talon-list/key.mapPair.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
not app: vscode
-
---

[Content] =
[Removal] = 0:0-0:7
>-------<
0| not app: vscode

[Domain] = 0:0-0:15
>---------------<
0| not app: vscode

[Insertion delimiter] = " "
13 changes: 13 additions & 0 deletions data/fixtures/scopes/talon-list/key.mapPair2.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
foo: bar
---

[Content] =
[Removal] = 0:0-0:3
>---<
0| foo: bar

[Domain] = 0:0-0:8
>--------<
0| foo: bar

[Insertion delimiter] = " "
12 changes: 12 additions & 0 deletions data/fixtures/scopes/talon-list/name.iteration.document.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

foo: bar

---

[Content] =
[Domain] = 0:0-2:0
>
0|
1| foo: bar
2|
<
21 changes: 21 additions & 0 deletions data/fixtures/scopes/talon-list/name.variable.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
not app: vscode
-
---

[Content] = 0:4-0:7
>---<
0| not app: vscode

[Removal] = 0:3-0:7
>----<
0| not app: vscode

[Leading delimiter] = 0:3-0:4
>-<
0| not app: vscode

[Domain] = 0:0-0:15
>---------------<
0| not app: vscode

[Insertion delimiter] = " "
13 changes: 13 additions & 0 deletions data/fixtures/scopes/talon-list/name.variable2.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
foo: bar
---

[Content] =
[Removal] = 0:0-0:3
>---<
0| foo: bar

[Domain] = 0:0-0:8
>--------<
0| foo: bar

[Insertion delimiter] = " "
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

foo: bar

---

[Content] =
[Domain] = 0:0-2:0
>
0|
1| foo: bar
2|
<
16 changes: 16 additions & 0 deletions data/fixtures/scopes/talon-list/statement.variable.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
not app: vscode
-
---

[Content] =
[Domain] = 0:0-0:15
>---------------<
0| not app: vscode

[Removal] = 0:0-1:0
>---------------
0| not app: vscode
1| -
<

[Insertion delimiter] = "\n"
10 changes: 10 additions & 0 deletions data/fixtures/scopes/talon-list/statement.variable2.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
foo: bar
---

[Content] =
[Removal] =
[Domain] = 0:0-0:8
>--------<
0| foo: bar

[Insertion delimiter] = "\n"
17 changes: 17 additions & 0 deletions data/fixtures/scopes/talon-list/string.singleLine.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
foo: "bar"
---

[Content] =
[Domain] = 0:5-0:10
>-----<
0| foo: "bar"

[Removal] = 0:4-0:10
>------<
0| foo: "bar"

[Leading delimiter] = 0:4-0:5
>-<
0| foo: "bar"

[Insertion delimiter] = " "
10 changes: 10 additions & 0 deletions data/fixtures/scopes/talon-list/textFragment.comment.line.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Hello world
---

[Content] =
[Removal] =
[Domain] = 0:0-0:13
>-------------<
0| # Hello world

[Insertion delimiter] = " "
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
foo: "bar"
---

[Content] =
[Removal] =
[Domain] = 0:6-0:9
>---<
0| foo: "bar"

[Insertion delimiter] = " "
12 changes: 12 additions & 0 deletions data/fixtures/scopes/talon-list/value.iteration.document.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

foo: bar

---

[Content] =
[Domain] = 0:0-2:0
>
0|
1| foo: bar
2|
<
12 changes: 12 additions & 0 deletions data/fixtures/scopes/talon-list/value.mapPair.iteration.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

foo: bar

---

[Content] =
[Domain] = 0:0-2:0
>
0|
1| foo: bar
2|
<
22 changes: 22 additions & 0 deletions data/fixtures/scopes/talon-list/value.mapPair.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

foo: bar

---

[Content] = 1:5-1:8
>---<
1| foo: bar

[Removal] = 1:4-1:8
>----<
1| foo: bar

[Leading delimiter] = 1:4-1:5
>-<
1| foo: bar

[Domain] = 1:0-1:8
>--------<
1| foo: bar

[Insertion delimiter] = " "
20 changes: 20 additions & 0 deletions data/fixtures/scopes/talon-list/value.variable.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
foo: bar
---

[Content] = 0:5-0:8
>---<
0| foo: bar

[Removal] = 0:4-0:8
>----<
0| foo: bar

[Leading delimiter] = 0:4-0:5
>-<
0| foo: bar

[Domain] = 0:0-0:8
>--------<
0| foo: bar

[Insertion delimiter] = " "
20 changes: 20 additions & 0 deletions data/fixtures/scopes/talon-list/value.variable2.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
foo: "bar"
---

[Content] = 0:5-0:10
>-----<
0| foo: "bar"

[Removal] = 0:4-0:10
>------<
0| foo: "bar"

[Leading delimiter] = 0:4-0:5
>-<
0| foo: "bar"

[Domain] = 0:0-0:10
>----------<
0| foo: "bar"

[Insertion delimiter] = " "
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,17 @@ import { scmScopeSupport } from "./scm";
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
import { scssScopeSupport } from "./scss";
import { talonScopeSupport } from "./talon";
import { talonListScopeSupport } from "./talon-list";
import { typescriptScopeSupport } from "./typescript";
import { typescriptreactScopeSupport } from "./typescriptreact";
import { xmlScopeSupport } from "./xml";
import { yamlScopeSupport } from "./yaml";

/* eslint-disable @typescript-eslint/naming-convention */

export const languageScopeSupport: StringRecord<LanguageScopeSupportFacetMap> =
{
"talon-list": talonListScopeSupport,
c: cScopeSupport,
clojure: clojureScopeSupport,
cpp: cppScopeSupport,
Expand Down
29 changes: 16 additions & 13 deletions packages/common/src/scopeSupportFacets/properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ export const propertiesScopeSupport: LanguageScopeSupportFacetMap = {
"statement.variable": supported,
"statement.iteration.document": supported,

"key.mapPair.iteration": supported,
"key.mapPair": supported,
"name.iteration.document": supported,
"name.variable": supported,
"name.iteration.document": supported,

"key.mapPair": supported,
"key.mapPair.iteration": supported,

"value.iteration.document": supported,
"value.mapPair.iteration": supported,
"value.mapPair": supported,
"value.mapPair.iteration": supported,
"value.variable": supported,
"value.iteration.document": supported,

"comment.line": supported,
"textFragment.comment.line": supported,
Expand Down Expand Up @@ -301,26 +302,28 @@ export const propertiesScopeSupport: LanguageScopeSupportFacetMap = {
"value.command": notApplicable,
"interior.command": notApplicable,

// Miscellaneous statements
"statement.break": notApplicable,
"statement.continue": notApplicable,
"statement.assignment": notApplicable,
"statement.iteration.block": notApplicable,

// Assignment
"statement.assignment": notApplicable,
"name.assignment": notApplicable,
"value.assignment": notApplicable,

// Miscellaneous
// Block
"name.iteration.block": notApplicable,
"value.iteration.block": notApplicable,
"statement.iteration.block": notApplicable,

// Miscellaneous statements
"statement.break": notApplicable,
"statement.continue": notApplicable,

// Miscellaneous
"statement.misc": notApplicable,
"type.cast": notApplicable,
"type.iteration.block": notApplicable,
"type.iteration.document": notApplicable,
"type.typeArgument.iteration": notApplicable,
"type.typeArgument": notApplicable,
"type.variable": notApplicable,
"value.iteration.block": notApplicable,
disqualifyDelimiter: notApplicable,
environment: notApplicable,
fieldAccess: notApplicable,
Expand Down
Loading
Loading