Skip to content

Commit

Permalink
Add "access" scope for python
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey committed Jun 8, 2023
1 parent 6c78ce9 commit fccb908
Show file tree
Hide file tree
Showing 26 changed files with 809 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
languageId: python
command:
version: 5
spokenForm: clear access air
action: {name: clearAndSetSelection}
targets:
- type: primitive
modifiers:
- type: containingScope
scopeType: {type: fieldAccess}
mark: {type: decoratedSymbol, symbolColor: default, character: a}
usePrePhraseSnapshot: true
initialState:
documentContents: |
aaa().bbb.ccc().ddd
selections:
- anchor: {line: 1, character: 0}
active: {line: 1, character: 0}
marks:
default.a:
start: {line: 0, character: 0}
end: {line: 0, character: 3}
finalState:
documentContents: |
.bbb.ccc().ddd
selections:
- anchor: {line: 0, character: 0}
active: {line: 0, character: 0}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
languageId: python
command:
version: 5
spokenForm: clear access bat
action: {name: clearAndSetSelection}
targets:
- type: primitive
modifiers:
- type: containingScope
scopeType: {type: fieldAccess}
mark: {type: decoratedSymbol, symbolColor: default, character: b}
usePrePhraseSnapshot: true
initialState:
documentContents: |
aaa().bbb.ccc().ddd
selections:
- anchor: {line: 1, character: 0}
active: {line: 1, character: 0}
marks:
default.b:
start: {line: 0, character: 6}
end: {line: 0, character: 9}
finalState:
documentContents: |
aaa().ccc().ddd
selections:
- anchor: {line: 0, character: 5}
active: {line: 0, character: 5}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
languageId: python
command:
version: 5
spokenForm: clear access bat
action: {name: clearAndSetSelection}
targets:
- type: primitive
modifiers:
- type: containingScope
scopeType: {type: fieldAccess}
mark: {type: decoratedSymbol, symbolColor: default, character: b}
usePrePhraseSnapshot: true
initialState:
documentContents: |
a[0].b[c.d]
selections:
- anchor: {line: 1, character: 0}
active: {line: 1, character: 0}
marks:
default.b:
start: {line: 0, character: 5}
end: {line: 0, character: 6}
finalState:
documentContents: |
a[0]
selections:
- anchor: {line: 0, character: 4}
active: {line: 0, character: 4}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
languageId: python
command:
version: 5
spokenForm: clear access bat
action: {name: clearAndSetSelection}
targets:
- type: primitive
modifiers:
- type: containingScope
scopeType: {type: fieldAccess}
mark: {type: decoratedSymbol, symbolColor: default, character: b}
usePrePhraseSnapshot: true
initialState:
documentContents: |
aaa.bbb(
ccc + 5
)
selections:
- anchor: {line: 3, character: 0}
active: {line: 3, character: 0}
marks:
default.b:
start: {line: 0, character: 4}
end: {line: 0, character: 7}
finalState:
documentContents: |
aaa
selections:
- anchor: {line: 0, character: 3}
active: {line: 0, character: 3}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
languageId: python
command:
version: 5
spokenForm: clear access cap
action: {name: clearAndSetSelection}
targets:
- type: primitive
modifiers:
- type: containingScope
scopeType: {type: fieldAccess}
mark: {type: decoratedSymbol, symbolColor: default, character: c}
usePrePhraseSnapshot: true
initialState:
documentContents: |
aaa().bbb.ccc().ddd
selections:
- anchor: {line: 1, character: 0}
active: {line: 1, character: 0}
marks:
default.c:
start: {line: 0, character: 10}
end: {line: 0, character: 13}
finalState:
documentContents: |
aaa().bbb.ddd
selections:
- anchor: {line: 0, character: 9}
active: {line: 0, character: 9}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
languageId: python
command:
version: 5
spokenForm: clear access cap
action: {name: clearAndSetSelection}
targets:
- type: primitive
modifiers:
- type: containingScope
scopeType: {type: fieldAccess}
mark: {type: decoratedSymbol, symbolColor: default, character: c}
usePrePhraseSnapshot: true
initialState:
documentContents: |
aaa().bbb.ccc(eee.fff).ddd
selections:
- anchor: {line: 1, character: 0}
active: {line: 1, character: 0}
marks:
default.c:
start: {line: 0, character: 10}
end: {line: 0, character: 13}
finalState:
documentContents: |
aaa().bbb.ddd
selections:
- anchor: {line: 0, character: 9}
active: {line: 0, character: 9}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
languageId: python
command:
version: 5
spokenForm: clear access cap
action: {name: clearAndSetSelection}
targets:
- type: primitive
modifiers:
- type: containingScope
scopeType: {type: fieldAccess}
mark: {type: decoratedSymbol, symbolColor: default, character: c}
usePrePhraseSnapshot: true
initialState:
documentContents: |
a[0].b[c.d()]
selections:
- anchor: {line: 1, character: 0}
active: {line: 1, character: 0}
marks:
default.c:
start: {line: 0, character: 7}
end: {line: 0, character: 8}
finalState:
documentContents: |
a[0].b[.d()]
selections:
- anchor: {line: 0, character: 7}
active: {line: 0, character: 7}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
languageId: python
command:
version: 5
spokenForm: clear access drum
action: {name: clearAndSetSelection}
targets:
- type: primitive
modifiers:
- type: containingScope
scopeType: {type: fieldAccess}
mark: {type: decoratedSymbol, symbolColor: default, character: d}
usePrePhraseSnapshot: true
initialState:
documentContents: |
aaa().bbb.ccc().ddd
selections:
- anchor: {line: 1, character: 0}
active: {line: 1, character: 0}
marks:
default.d:
start: {line: 0, character: 16}
end: {line: 0, character: 19}
finalState:
documentContents: |
aaa().bbb.ccc()
selections:
- anchor: {line: 0, character: 15}
active: {line: 0, character: 15}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
languageId: python
command:
version: 5
spokenForm: clear access drum
action: {name: clearAndSetSelection}
targets:
- type: primitive
modifiers:
- type: containingScope
scopeType: {type: fieldAccess}
mark: {type: decoratedSymbol, symbolColor: default, character: d}
usePrePhraseSnapshot: true
initialState:
documentContents: |
a[0].b[c.d()]
selections:
- anchor: {line: 1, character: 0}
active: {line: 1, character: 0}
marks:
default.d:
start: {line: 0, character: 9}
end: {line: 0, character: 10}
finalState:
documentContents: |
a[0].b[c]
selections:
- anchor: {line: 0, character: 8}
active: {line: 0, character: 8}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
languageId: python
command:
version: 5
spokenForm: clear access each
action: {name: clearAndSetSelection}
targets:
- type: primitive
modifiers:
- type: containingScope
scopeType: {type: fieldAccess}
mark: {type: decoratedSymbol, symbolColor: default, character: e}
usePrePhraseSnapshot: true
initialState:
documentContents: |
aaa().bbb.ccc(eee).ddd
selections:
- anchor: {line: 1, character: 0}
active: {line: 1, character: 0}
marks:
default.e:
start: {line: 0, character: 14}
end: {line: 0, character: 17}
finalState:
documentContents: |
aaa().bbb.ddd
selections:
- anchor: {line: 0, character: 9}
active: {line: 0, character: 9}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
languageId: python
command:
version: 5
spokenForm: clear access each
action: {name: clearAndSetSelection}
targets:
- type: primitive
modifiers:
- type: containingScope
scopeType: {type: fieldAccess}
mark: {type: decoratedSymbol, symbolColor: default, character: e}
usePrePhraseSnapshot: true
initialState:
documentContents: |
aaa().bbb.ccc(eee.fff).ddd
selections:
- anchor: {line: 1, character: 0}
active: {line: 1, character: 0}
marks:
default.e:
start: {line: 0, character: 14}
end: {line: 0, character: 17}
finalState:
documentContents: |
aaa().bbb.ccc(.fff).ddd
selections:
- anchor: {line: 0, character: 14}
active: {line: 0, character: 14}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
languageId: python
command:
version: 5
spokenForm: clear access fine
action: {name: clearAndSetSelection}
targets:
- type: primitive
modifiers:
- type: containingScope
scopeType: {type: fieldAccess}
mark: {type: decoratedSymbol, symbolColor: default, character: f}
usePrePhraseSnapshot: true
initialState:
documentContents: |
aaa().bbb.ccc(eee.fff).ddd
selections:
- anchor: {line: 1, character: 0}
active: {line: 1, character: 0}
marks:
default.f:
start: {line: 0, character: 18}
end: {line: 0, character: 21}
finalState:
documentContents: |
aaa().bbb.ccc(eee).ddd
selections:
- anchor: {line: 0, character: 17}
active: {line: 0, character: 17}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
languageId: python
command:
version: 5
spokenForm: clear every access air
action: {name: clearAndSetSelection}
targets:
- type: primitive
modifiers:
- type: everyScope
scopeType: {type: fieldAccess}
mark: {type: decoratedSymbol, symbolColor: default, character: a}
usePrePhraseSnapshot: true
initialState:
documentContents: |
(
aaa
.bbb
.ccc
)
selections:
- anchor: {line: 5, character: 0}
active: {line: 5, character: 0}
marks:
default.a:
start: {line: 1, character: 4}
end: {line: 1, character: 7}
finalState:
documentContents: |
(
)
selections:
- anchor: {line: 1, character: 4}
active: {line: 1, character: 4}
- anchor: {line: 2, character: 4}
active: {line: 2, character: 4}
- anchor: {line: 3, character: 4}
active: {line: 3, character: 4}
Loading

0 comments on commit fccb908

Please sign in to comment.