sam-fans - fans of the sam editor
 help / color / mirror / Atom feed
* Re: structural regexps just for searching
@ 1994-11-24 14:38 rob
  0 siblings, 0 replies; 3+ messages in thread
From: rob @ 1994-11-24 14:38 UTC (permalink / raw)
  To: sam-fans

it's easy to get it to scroll to the next match.  follow the command
by an address, . :

	/[a-z0-9_]+ \(/ v/if|for|while|switch|return/
	.

it's just like saying

	23

to have it show you line 23

-rob


^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: structural regexps just for searching
@ 1994-11-25 14:17 arnold
  0 siblings, 0 replies; 3+ messages in thread
From: arnold @ 1994-11-25 14:17 UTC (permalink / raw)
  To: rob, sam-fans

> it's easy to get it to scroll to the next match.  follow the command
> by an address, . :
> 
> 	/[a-z0-9_]+ \(/ v/if|for|while|switch|return/
> 	.
> 
> it's just like saying
> 
> 	23
> 
> to have it show you line 23

This works, but suprisingly (to me, anyway), it does not wrap around
the file...

Arnold


^ permalink raw reply	[flat|nested] 3+ messages in thread
* structural regexps just for searching
@ 1994-11-24 13:25 Arnold D. Robbins
  0 siblings, 0 replies; 3+ messages in thread
From: Arnold D. Robbins @ 1994-11-24 13:25 UTC (permalink / raw)
  To: sam-fans

I want to look for function calls where there is a space after the function
name and before the left paren. But I like spaces between my keywords and
the right paren.  I try something like this in the command window:

	/[a-z0-9_]+ \(/ v/if|for|while|switch|return/

This will find the next match, but the file window does not scroll to show . the
way it would for just a plain search.  Is there a way to get it to do this?
I'm a bit leary of just making a sweeping change

	, /[a-z0-9_]+ \(/ v/if|for|while|switch|return/ s/ //

Although it would probably work ok.

Please reply by mail, my home address is not on the list.

Thanks,

Arnold


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1994-11-25 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-11-24 14:38 structural regexps just for searching rob
  -- strict thread matches above, loose matches on Subject: below --
1994-11-25 14:17 arnold
1994-11-24 13:25 Arnold D. Robbins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).