@@ -23,6 +23,7 @@ declare var digit: any;
2323import { capture , UNUSED as _ , argPositions } from "@cursorless/cursorless-engine"
2424import { command } from "../command"
2525import { keyboardLexer } from "../keyboardLexer" ;
26+ import { RelativeScopeModifier } from "@cursorless/common" ;
2627
2728const { $0, $1, $2 } = argPositions ;
2829
@@ -93,7 +94,7 @@ const grammar: Grammar = {
9394 { "name" : "modifier$ebnf$2" , "symbols" : [ "number" ] , "postprocess" : id } ,
9495 { "name" : "modifier$ebnf$2" , "symbols" : [ ] , "postprocess" : ( ) => null } ,
9596 { "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 => ( {
9798 type : "relativeScope" ,
9899 offset : offset ?. number ?? 1 ,
99100 direction : offset ?. direction ?? "forward" ,
@@ -102,7 +103,7 @@ const grammar: Grammar = {
102103 } )
103104 } ,
104105 { "name" : "modifier" , "symbols" : [ "offset" , "scopeType" ] , "postprocess" :
105- ( [ offset , scopeType ] ) => ( {
106+ ( [ offset , scopeType ] ) : RelativeScopeModifier => ( {
106107 type : "relativeScope" ,
107108 offset : 0 ,
108109 direction : offset ?. direction ?? "forward" ,
0 commit comments