Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Perl ctags How To

by Fletch (Chancellor)
on Jan 10, 2021 at 18:35 UTC ( #11126714=note: print w/replies, xml ) Need Help??


in reply to Perl ctags How To

Meandering not definitive answer; I don't regularly use tags (if I'm looking for something I'll use ripgrep) but . . .

When I've created tags files in the past I usually used exuberant; worked pretty well with the large codebase at $work. I'd also toyed very briefly with GNU global and the emacs interface for same. I had the following perl additions for constant things and Moose-y attributes.

--regex-perl=/Readonly::[a-zA-Z0-9_]+ my [\$@%]([a-zA-Z0-9_]+)/\1/C,Re +adonly:: constant/ --regex-perl=/use constant ([A-Z][a-zA-Z0-9_]+)/\1/c,use constant/ --regex-perl=/has[[:space:]]+([[:alnum:]_]+)[[:space:]]*=>/\1/M,moose +attribute/e

Most "modern" IDEs have moved to using a "language server" to implement the language-specific parsing and symbol lookup and what not; there's Perl::LanguageServer which I've run once or twice with the emacs module (you mention the inferior editor so this article comes up on a search but I can't vouch for it) so you might see if that maybe scratches the need for which you've been using tags.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^2: Perl ctags How To
by learnedbyerror (Monk) on Jan 12, 2021 at 05:31 UTC

    Thanks for your response Monk Emacs. I am also investigate the Language Server. Like you, I also use ripgrep and the silver searcher as well.

    I hope that you recover soon from your addiction :)

    lbe

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11126714]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2021-04-15 02:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?