[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with etags
From: |
Eli Zaretskii |
Subject: |
Re: Help with etags |
Date: |
Fri, 08 Dec 2017 12:28:33 +0200 |
> From: "N. Raghavendra" <nyraghu27132@gmail.com>
> Date: Tue, 05 Dec 2017 18:23:47 +0530
>
> I tried the command
>
> etags --language=none
> --regex="/^[[:space:]]*Definition[[:space:]\n]+[[:space:]]*\([[:alnum:]_]+\)[[:space:]]*\n/\1/"
> Homotopies.v
>
> but am getting an empty tags table.
This is because (a) you should drop the leading "^" in the regexp
(the regexp is always used anchored, as described in the manual);
and (b) you should use the 'm' modifier, because your regexp is
multi-line (this is also in the manual).
This works for me:
etags --language=none
--regex="/[[:space:]]*Definition[[:space:]\n]+[[:space:]]*\([[:alnum:]_]+\)[[:space:]]*\n/\1/m"
Homotopies.v
- Help with etags, N. Raghavendra, 2017/12/05
- Re: Help with etags,
Eli Zaretskii <=