File tree 2 files changed +32
-2
lines changed
cursorless-engine/src/processTargets/modifiers/ItemStage
cursorless-vscode-e2e/src/suite/fixtures/recorded/itemTextual 2 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ export function tokenizeRange(
41
41
const lexemes = text
42
42
// NB: Both the delimiters and the text between them are included because we
43
43
// use a capture group in this split regex
44
- . split ( / ( [ , ( ) { } < > [ \] " ' ` ] | \\ " | \\ ' | \\ ` ) / g)
45
- . filter ( ( lexeme ) => lexeme . length > 0 ) ;
44
+ . split ( / ( [ , ( ) { } < > [ \] " ' ` ] ) | (?< ! \\ ) ( \\ " | \\ ' | \\ ` ) / g)
45
+ . filter ( ( lexeme ) => lexeme != null && lexeme . length > 0 ) ;
46
46
const joinedLexemes = joinLexemesBySkippingMatchingPairs ( lexemes ) ;
47
47
const tokens : Token [ ] = [ ] ;
48
48
let offset = document . offsetAt ( interior . start ) ;
Original file line number Diff line number Diff line change
1
+ languageId : plaintext
2
+ command :
3
+ version : 5
4
+ spokenForm : clear item
5
+ action : {name: clearAndSetSelection}
6
+ targets :
7
+ - type : primitive
8
+ modifiers :
9
+ - type : containingScope
10
+ scopeType : {type: collectionItem}
11
+ usePrePhraseSnapshot : true
12
+ initialState :
13
+ documentContents : |-
14
+ values = {
15
+ "aaa": "\\",
16
+ "bbb": "ccc",
17
+ }
18
+ selections :
19
+ - anchor : {line: 1, character: 4}
20
+ active : {line: 1, character: 4}
21
+ marks : {}
22
+ finalState :
23
+ documentContents : |-
24
+ values = {
25
+ ,
26
+ "bbb": "ccc",
27
+ }
28
+ selections :
29
+ - anchor : {line: 1, character: 4}
30
+ active : {line: 1, character: 4}
You can’t perform that action at this time.
0 commit comments