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.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”editor
Section titled “editor”pattern
Section titled “pattern”RegExp = tagPattern
Regular expression used to check if there’s a partial tag before the cursor.
Returns
Section titled “Returns”false | RegExpExecArray | null