-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated leading and trailing delimiters for before and after positions (
#340) Co-authored-by: Pokey Rule <pokey.rule@gmail.com>
- Loading branch information
1 parent
de7dfef
commit 5cdb954
Showing
7 changed files
with
219 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/test/suite/fixtures/recorded/positions/chuckAfterHarp.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
spokenForm: chuck after harp | ||
languageId: typescript | ||
command: | ||
actionName: remove | ||
partialTargets: | ||
- type: primitive | ||
position: after | ||
mark: {type: decoratedSymbol, symbolColor: default, character: h} | ||
extraArgs: [] | ||
initialState: | ||
documentContents: | | ||
"hello " | ||
" hello" | ||
" hello " | ||
return a.b | ||
selections: | ||
- anchor: {line: 4, character: 0} | ||
active: {line: 4, character: 0} | ||
marks: | ||
default.h: | ||
start: {line: 2, character: 2} | ||
end: {line: 2, character: 7} | ||
finalState: | ||
documentContents: | | ||
"hello " | ||
" hello" | ||
" hello" | ||
return a.b | ||
selections: | ||
- anchor: {line: 4, character: 0} | ||
active: {line: 4, character: 0} | ||
thatMark: | ||
- anchor: {line: 2, character: 7} | ||
active: {line: 2, character: 7} | ||
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: h}, selectionType: token, position: after, insideOutsideType: outside, modifier: {type: identity}}] |
35 changes: 35 additions & 0 deletions
35
src/test/suite/fixtures/recorded/positions/chuckAfterLook.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
spokenForm: chuck after look | ||
languageId: typescript | ||
command: | ||
actionName: remove | ||
partialTargets: | ||
- type: primitive | ||
position: after | ||
mark: {type: decoratedSymbol, symbolColor: default, character: l} | ||
extraArgs: [] | ||
initialState: | ||
documentContents: | | ||
"hello " | ||
" hello" | ||
" hello " | ||
return a.b | ||
selections: | ||
- anchor: {line: 4, character: 0} | ||
active: {line: 4, character: 0} | ||
marks: | ||
default.l: | ||
start: {line: 0, character: 1} | ||
end: {line: 0, character: 6} | ||
finalState: | ||
documentContents: | | ||
"hello" | ||
" hello" | ||
" hello " | ||
return a.b | ||
selections: | ||
- anchor: {line: 4, character: 0} | ||
active: {line: 4, character: 0} | ||
thatMark: | ||
- anchor: {line: 0, character: 6} | ||
active: {line: 0, character: 6} | ||
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: l}, selectionType: token, position: after, insideOutsideType: outside, modifier: {type: identity}}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
spokenForm: chuck air | ||
languageId: typescript | ||
command: | ||
actionName: remove | ||
partialTargets: | ||
- type: primitive | ||
mark: {type: decoratedSymbol, symbolColor: default, character: a} | ||
extraArgs: [] | ||
initialState: | ||
documentContents: | | ||
"hello " | ||
" hello" | ||
" hello " | ||
return a.b | ||
selections: | ||
- anchor: {line: 4, character: 0} | ||
active: {line: 4, character: 0} | ||
marks: | ||
default.a: | ||
start: {line: 3, character: 7} | ||
end: {line: 3, character: 8} | ||
finalState: | ||
documentContents: | | ||
"hello " | ||
" hello" | ||
" hello " | ||
return .b | ||
selections: | ||
- anchor: {line: 4, character: 0} | ||
active: {line: 4, character: 0} | ||
thatMark: | ||
- anchor: {line: 3, character: 7} | ||
active: {line: 3, character: 7} | ||
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: a}, selectionType: token, position: contents, insideOutsideType: outside, modifier: {type: identity}}] |
35 changes: 35 additions & 0 deletions
35
src/test/suite/fixtures/recorded/positions/chuckBeforeAir.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
spokenForm: chuck before air | ||
languageId: typescript | ||
command: | ||
actionName: remove | ||
partialTargets: | ||
- type: primitive | ||
position: before | ||
mark: {type: decoratedSymbol, symbolColor: default, character: a} | ||
extraArgs: [] | ||
initialState: | ||
documentContents: | | ||
"hello " | ||
" hello" | ||
" hello " | ||
return a.b | ||
selections: | ||
- anchor: {line: 4, character: 0} | ||
active: {line: 4, character: 0} | ||
marks: | ||
default.a: | ||
start: {line: 3, character: 7} | ||
end: {line: 3, character: 8} | ||
finalState: | ||
documentContents: | | ||
"hello " | ||
" hello" | ||
" hello " | ||
returna.b | ||
selections: | ||
- anchor: {line: 4, character: 0} | ||
active: {line: 4, character: 0} | ||
thatMark: | ||
- anchor: {line: 3, character: 6} | ||
active: {line: 3, character: 6} | ||
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: a}, selectionType: token, position: before, insideOutsideType: outside, modifier: {type: identity}}] |
35 changes: 35 additions & 0 deletions
35
src/test/suite/fixtures/recorded/positions/chuckBeforeEach.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
spokenForm: chuck before each | ||
languageId: typescript | ||
command: | ||
actionName: remove | ||
partialTargets: | ||
- type: primitive | ||
position: before | ||
mark: {type: decoratedSymbol, symbolColor: default, character: e} | ||
extraArgs: [] | ||
initialState: | ||
documentContents: | | ||
"hello " | ||
" hello" | ||
" hello " | ||
return a.b | ||
selections: | ||
- anchor: {line: 4, character: 0} | ||
active: {line: 4, character: 0} | ||
marks: | ||
default.e: | ||
start: {line: 1, character: 2} | ||
end: {line: 1, character: 7} | ||
finalState: | ||
documentContents: | | ||
"hello " | ||
"hello" | ||
" hello " | ||
return a.b | ||
selections: | ||
- anchor: {line: 4, character: 0} | ||
active: {line: 4, character: 0} | ||
thatMark: | ||
- anchor: {line: 1, character: 1} | ||
active: {line: 1, character: 1} | ||
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: e}, selectionType: token, position: before, insideOutsideType: outside, modifier: {type: identity}}] |
35 changes: 35 additions & 0 deletions
35
src/test/suite/fixtures/recorded/positions/chuckBeforeHarp.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
spokenForm: chuck before harp | ||
languageId: typescript | ||
command: | ||
actionName: remove | ||
partialTargets: | ||
- type: primitive | ||
position: before | ||
mark: {type: decoratedSymbol, symbolColor: default, character: h} | ||
extraArgs: [] | ||
initialState: | ||
documentContents: | | ||
"hello " | ||
" hello" | ||
" hello " | ||
return a.b | ||
selections: | ||
- anchor: {line: 4, character: 0} | ||
active: {line: 4, character: 0} | ||
marks: | ||
default.h: | ||
start: {line: 2, character: 2} | ||
end: {line: 2, character: 7} | ||
finalState: | ||
documentContents: | | ||
"hello " | ||
" hello" | ||
"hello " | ||
return a.b | ||
selections: | ||
- anchor: {line: 4, character: 0} | ||
active: {line: 4, character: 0} | ||
thatMark: | ||
- anchor: {line: 2, character: 1} | ||
active: {line: 2, character: 1} | ||
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: h}, selectionType: token, position: before, insideOutsideType: outside, modifier: {type: identity}}] |