@@ -23,6 +23,7 @@ declare var digit: any;
23
23
import { capture , UNUSED as _ , argPositions } from "@cursorless/cursorless-engine"
24
24
import { command } from "../command"
25
25
import { keyboardLexer } from "../keyboardLexer" ;
26
+ import { RelativeScopeModifier } from "@cursorless/common" ;
26
27
27
28
const { $0, $1, $2 } = argPositions ;
28
29
@@ -93,7 +94,7 @@ const grammar: Grammar = {
93
94
{ "name" : "modifier$ebnf$2" , "symbols" : [ "number" ] , "postprocess" : id } ,
94
95
{ "name" : "modifier$ebnf$2" , "symbols" : [ ] , "postprocess" : ( ) => null } ,
95
96
{ "name" : "modifier" , "symbols" : [ "modifier$ebnf$1" , ( keyboardLexer . has ( "nextPrev" ) ? { type : "nextPrev" } : nextPrev ) , "modifier$ebnf$2" , "scopeType" ] , "postprocess" :
96
- ( [ offset , _ , length , scopeType ] ) => ( {
97
+ ( [ offset , _ , length , scopeType ] ) : RelativeScopeModifier => ( {
97
98
type : "relativeScope" ,
98
99
offset : offset ?. number ?? 1 ,
99
100
direction : offset ?. direction ?? "forward" ,
@@ -102,7 +103,7 @@ const grammar: Grammar = {
102
103
} )
103
104
} ,
104
105
{ "name" : "modifier" , "symbols" : [ "offset" , "scopeType" ] , "postprocess" :
105
- ( [ offset , scopeType ] ) => ( {
106
+ ( [ offset , scopeType ] ) : RelativeScopeModifier => ( {
106
107
type : "relativeScope" ,
107
108
offset : 0 ,
108
109
direction : offset ?. direction ?? "forward" ,
0 commit comments