( text: string, pos: number, wordType: WordType, )
| 46 | } |
| 47 | |
| 48 | export function getWordRightInText( |
| 49 | text: string, |
| 50 | pos: number, |
| 51 | wordType: WordType, |
| 52 | ): number | undefined { |
| 53 | return getAllPositions(text, regexForWordType(wordType)).find((index) => index > pos); |
| 54 | } |
| 55 | |
| 56 | export function prevWordStart( |
| 57 | document: TextDocument, |
no test coverage detected