Skip to content

getTagMatch

getTagMatch(__namedParameters, editor, pattern): false | RegExpExecArray | null

Defined in: extensions/autocomplete/markup/index.ts:28

false is returned if completion shouldn’t happen at the current position. null is returned if the cursor isn’t in a tag.

If completion should happen and the cursor is in a tag, a match array is returned. The match has two capturing groups; the tag’s name and the last attribute’s name.

CompletionContext

PrismEditor

RegExp = tagPattern

Regular expression used to check if there’s a partial tag before the cursor.

false | RegExpExecArray | null