On 14/12/08 14:47, David Fishburn wrote:
> On Sat, Dec 13, 2008 at 1:14 PM, [email protected]<[email protected]>  
> wrote:
>>> If someone could provide a small (but useful) Tex program and indicate
>>> which tags should be identified, and the rules by which to identify
>>> it, I could consider how much work it would be to add it.
>> TeX is not a programming language.
>> You can consider about it like HTML (but it is very brutally
>> comparison).
>> Here you can find an example LaTeX file:
>> http://sip.clarku.edu/tutorials/TeX/intro.html
>>
>>> If I recall on this list, there is other talk about ReTex (or something).
>>> Is there different dialects of Tex?
>> TeX is a generic language.
>> There are some extensions of it.
>> The most popular (and common) is LaTeX.
>> Furthermore bibtex and tetex.
>>
>> It will be excellent if Exuberant Tags will parse at least following
>> tags:
>> subsubsection
>> subsection
>> section
>> chapter
>
> If you can build ctags from source I have checked in a tex parser.
>
> Looks for files with .tex extension.
> Produces 5 types of tags:
>      c,chapter
>      s,section
>      u,subsection
>      b,subsubsection
>      p,package
>
> It is a token parser which can handle tags of this format:
>      \keyword{any number of words}
>      \keyword[short desc]{any number of words}
>      \keyword*[short desc]{any number of words}
>      \keyword[short desc]*{any number of words}
>
> Will find tags for the following lines:
>      \usepackage{amsmath}
>      \chapter{chapter text}
>      \section{section1 text}
>      \subsection{subsection2}
>      \subsubsection{subsubsection3 with extra text}
>
>
> If someone that actually uses Tex can give it a go you can email me
> directly with any issues.
>
> Dave

IIUC, you don't need to recompile Exuberant Ctags to add a new language. 
Just add the appropriate lines to your ~/.ctags (or ~/ctags.cnf on Windows).

See "man ctags" if you have that manpage.


Best regards,
Tony.
-- 
         **  Hello and Welcome to the Psychiatric Hotline **
If you are obsessive-compulsive, please press 1 repeatedly.
If you are co-dependent, please ask someone to press 2.
If you have multiple personalities, please press 3, 4, 5 and 6.
If you are paranoid-delusional, we know who you are and what you want
        - just stay on the line so we can trace the call.
If you are schizophrenic, listen carefully and a little voice will
        tell you which number to press next.
If you are manic-depressive, it doesn't matter which number you press
        - no one will answer.
If you suffer from panic attacks, push every button you can find.
If you are sane, please hold on - we have the rest of humanity on the
         other line and they desparately want to ask you a few questions.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to