groupAt

fun groupAt(state: EditorState, pos: DocPos, side: Int = 1): CharCategory

Find the character group (word/space/punctuation) at the given position.

Parameters

state

Current editor state.

pos

Document position to query.

side

-1 = look at the character before pos, 1 = look at char at pos.