ctags - creating tags for a script language for easy browsing in vim -


i use ctags+vim lot of projects , ability browse through large chunks of code quickly.

i using stata, statistical package, has script language. though can have routines in code, code tends series of commands perform data , statistics operations. , code files can long. find myself in need of way browse efficiently.

since use vim, can use marks. wondering if use ctags this. is, want create tag marker (1) won't cause problem when run script (2) easy introduce ctags.

because supposed not break script, needs comment. in stata, comment lines start * , flow comments can made /* ..... */.

it great, example, have sections in code, marked comments:

* section: data 

and ctags picks "data manipulation" tag. can see list of sections , jump them without needs creating marks.

is there anyway this? i'd appreciate comments.

you need way generate tags database stata files. format simple, see :help tags-file-format. default tags program, exuberant ctags can extended regular expressions (--langmap, --regex); yields approximate parsing complex languages, should suffice custom section marks; maybe directly extract interesting language keywords.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -