Forum

ctags rules

Discuss anything not covered by any of the other categories.

Moderator: InsideQC Admins

ctags rules

Postby siska.robert » Mon Jul 04, 2011 5:56 pm

Hi. Anybody using ctags here? In combination with vim, emacs and perhaps some other editors it provides easy way to move around in bigger code via cross-referencing.

It doesn't support quakec, but fortunatelly, it can be expanded easily. Put this in ~/.ctags
Code: Select all
--langdef=quakec
--langmap=quakec:.qc
--regex-quakec=/^[ \t]*(void|float|vector|string|entity)[ \t]*\([^(]*\)[ \t]*([a-zA-Z0-9_]+)[ \t]*\=/\2/f,functions/


This is how it looks in vim with vimtags plugin: ctags in action
User avatar
siska.robert
 
Posts: 58
Joined: Wed Feb 17, 2010 7:51 pm
Location: Czech Republic

Postby toneddu2000 » Tue Jul 05, 2011 8:26 am

Cool! Using emacs or vi to code quakec! But it's not too dark the layout? I'm asking myself if it's not eye-breaking to work on a dark layout
toneddu2000
 
Posts: 1352
Joined: Tue Feb 24, 2009 4:39 pm
Location: Italy


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests