| Cobra | Interactive Query Language | contains | ||
|---|---|---|---|---|
| NAMEcontains — retain or move mark if range associated with current mark contains the pattern(s)SYNTAXc[contains] [and] [no] [top|up] pattern [pattern2] DESCRIPTIONBy default (without the and qualifier), this command is used to retain a current mark if the following two conditions are met:
 The use of the qualifier no retains the mark only if the pattern is absent. The use of the qualifier top restricts matches to the top nesting level. The use of the qualifier up increases that to the nesting level one higher. 
If the range corresponds to a (, ), [, ], {, or } token,
then the nesting level is determined by that token.
 EXAMPLES
	: m switch		# mark switch statements
	: n {			# move to next { token
	: c no top default	# switch without a default
SEE ALSOjump, patterns, qualifiers, stretch | ||||
| Return to index Manual Tutorial | (Last Updated: 13 February 2019) | |||