File tree Expand file tree Collapse file tree 4 files changed +98
-10
lines changed
cursorless-engine/src/languages
cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/perl Expand file tree Collapse file tree 4 files changed +98
-10
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const nodeMatchers: Partial<
4545 "parenthesized_argument" ,
4646 "argument" ,
4747 ] ,
48- className : "package_name" ,
48+ className : "package_statement. package_name! " ,
4949} ;
5050
5151export const patternMatchers = createPatternMatchers ( nodeMatchers ) ;
Original file line number Diff line number Diff line change @@ -2,21 +2,17 @@ languageId: perl
22command :
33 version : 4
44 spokenForm : change class name
5- action : { name: clearAndSetSelection }
5+ action : {name: clearAndSetSelection}
66 targets :
77 - type : primitive
88 modifiers :
99 - type : containingScope
10- scopeType : { type: className }
10+ scopeType : {type: className}
1111 usePrePhraseSnapshot : true
1212initialState :
1313 documentContents : $var = Some::Package::func()
1414 selections :
15- - anchor : { line: 0, character: 17 }
16- active : { line: 0, character: 17 }
15+ - anchor : {line: 0, character: 23 }
16+ active : {line: 0, character: 23 }
1717 marks : {}
18- finalState :
19- documentContents : $var = ::func()
20- selections :
21- - anchor : { line: 0, character: 7 }
22- active : { line: 0, character: 7 }
18+ thrownError : {name: NoContainingScopeError}
Original file line number Diff line number Diff line change 1+ languageId : perl
2+ command :
3+ version : 4
4+ spokenForm : change class name
5+ action : {name: clearAndSetSelection}
6+ targets :
7+ - type : primitive
8+ modifiers :
9+ - type : containingScope
10+ scopeType : {type: className}
11+ usePrePhraseSnapshot : true
12+ initialState :
13+ documentContents : |-
14+ package Foo::Bar::Banana;
15+
16+ # A sort of
17+ # comment
18+
19+ package Hello::World {
20+ 1;
21+ }
22+
23+ 1;
24+ selections :
25+ - anchor : {line: 0, character: 13}
26+ active : {line: 0, character: 13}
27+ - anchor : {line: 5, character: 19}
28+ active : {line: 5, character: 19}
29+ marks : {}
30+ finalState :
31+ documentContents : |-
32+ package ;
33+
34+ # A sort of
35+ # comment
36+
37+ package {
38+ 1;
39+ }
40+
41+ 1;
42+ selections :
43+ - anchor : {line: 0, character: 8}
44+ active : {line: 0, character: 8}
45+ - anchor : {line: 5, character: 8}
46+ active : {line: 5, character: 8}
Original file line number Diff line number Diff line change 1+ languageId : perl
2+ command :
3+ version : 4
4+ spokenForm : change class name
5+ action : {name: clearAndSetSelection}
6+ targets :
7+ - type : primitive
8+ modifiers :
9+ - type : containingScope
10+ scopeType : {type: className}
11+ usePrePhraseSnapshot : true
12+ initialState :
13+ documentContents : |-
14+ package Foo::Bar::Banana;
15+
16+ # A sort of
17+ # comment
18+
19+ package Hello::World {
20+ 1;
21+ }
22+
23+ 1;
24+ selections :
25+ - anchor : {line: 5, character: 2}
26+ active : {line: 5, character: 2}
27+ - anchor : {line: 0, character: 2}
28+ active : {line: 0, character: 2}
29+ marks : {}
30+ finalState :
31+ documentContents : |-
32+ package ;
33+
34+ # A sort of
35+ # comment
36+
37+ package {
38+ 1;
39+ }
40+
41+ 1;
42+ selections :
43+ - anchor : {line: 0, character: 8}
44+ active : {line: 0, character: 8}
45+ - anchor : {line: 5, character: 8}
46+ active : {line: 5, character: 8}
You can’t perform that action at this time.
0 commit comments