Cobra Interactive Query Language extend

NAME

extend — retain marks only if they are followed by a specific next token

SYNTAX

	e[xtend] pattern [pattern2]

DESCRIPTION

Currently marked tokens are only retained if the immediately following token matches the pattern(s) specified.

EXAMPLES

As in the mark command, the first pattern may be written as a regular expression, as in:
	: e /. \(	# match any token (/.) followed by a (
Other examples:
	: m @ident \(	# try to find function declarations
	: n		# move mark to the start of the parameters
	: j		# jump to end of parameters
	: e {		# keep only marks that are immediately followed by a {

SEE ALSO

patterns

Return to index
Manual
Tutorial
(Last Updated: 7 May 2017)