[comp.emacs] regexps for sexps

kramer@ai.toronto.edu ("Bryan M. Kramer") (06/08/91)

I'd like a syntax within regular expressions that
could be used for matching balanced sexps in lisp
code. Assume the syntax is \{ and \} where \{
matches the beginning of an sexp and \} matches
the end of the sexp marked by a matching \}. Newlines
would be ignored.

Thus

foo \(\{cond.\}\)

would match

foo (cond (a b)
	  (c d))

Just an idea for emacs developers (or does it exist?)


 Bryan M. Kramer	- 416-978-7330 -
 Department of Computer Science, University of Toronto
 Toronto, ON      M5S 1A4