all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Etags and regexps
@ 2019-07-15 14:46 Pascal Quesseveur
  2019-07-20  9:48 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Pascal Quesseveur @ 2019-07-15 14:46 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I am trying to set regexps to let etags recognize tags from Object
Pascal code. For ex. the following regexp;

/^[[:space:]]*type[[:space:]]+\([^ \t=]+\)/\1/

applied to a type declaration:

type MyType = class(TObject)

matches class MyType. I am now trying to match declarations on
multiple lines, for ex.:

type
  MyType = class(TObject)

I have tried to put a new line in my regexp and use m modifier in
etags regexp but it doesn't work (emacs 24 & 26.2). When i add a m
modifier to the original regexp which doesn't contain newlines, it
doesn't work anymore.

So how are we supposed to use m modifier?


-- 
Pascal Quesseveur
pquessev@gmail.com




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

end of thread, other threads:[~2019-07-22  9:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-15 14:46 Etags and regexps Pascal Quesseveur
2019-07-20  9:48 ` Eli Zaretskii
2019-07-22  9:46   ` Pascal Quesseveur

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.