|
[Ctags-devel] Adding more parsers, Ant, Dos Batch
From: David Fishburn <David.Fishburn@ia...> - 2008-12-13 17:22
|
There are a few extensions I have put in my ctags.cnf file: --langdef=sqlunit --langmap=sqlunit:.xml --regex-sqlunit=/^[ \t]*<[ \t]*connection.*>/connection/c,connection/i --regex-sqlunit=/^[ \t]*<[ \t]*setup.*>/setup/s,setup/i --regex-sqlunit=/^[ \t]*<[ \t]*teardown.*>/teardown/d,teardown/i --regex-sqlunit=/^[ \t]*<[ \t]*test.*name="([^"]+)".*>/\1/t,test/i --langdef=ant --langmap=ant:.xml --regex-ant=/^[ \t]*<[ \t]*project.*name="([^"]+)".*/\1/p,project/i --regex-ant=/^[ \t]*<[ \t]*target.*name="([^"]+)".*/\1/t,target/i --regex-php=/^[ \t]*if[ ]*[(]+[ \t]*\$act(ion)?[ \t]*==[ \t]*"([a-zA-Z0-9 ]+)"/\ 2/A,action/i --langdef=dosbatch --langmap=dosbatch:.cmd,.bat --regex-dosbatch=/^:([a-zA-Z0-9_]+)/\1/l,label/i --regex-dosbatch=/set[ ]+([a-zA-Z0-9_]+)/\1/v,variable/i --regex-perl=/\[%[ ]+BLOCK[ ]+([a-zA-Z0-9]+)[ ]+%\]/\1/t,template/i --langdef=asterisk --langmap=asterisk:.conf --regex-asterisk=/^\[(.*)\]/\1/c,context/i --regex-asterisk=/^#include[ \t]+(.*)/\1/i,includes/i Of these, the ones I would like to create a simple parser for are: Ant - build.xml Dosbatch .cmd,.bat Any see any issues going ahead an creating some parsers for them? Thanks, Dave |
| Thread | Author | Date |
|---|---|---|
| [Ctags-devel] Adding more parsers, Ant, Dos Batch | David Fishburn <David.Fishburn@ia...> |