help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Etags and regexps


From: Pascal Quesseveur
Subject: Etags and regexps
Date: Mon, 15 Jul 2019 16:46:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)

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
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]