[Ctags-devel] [patch] Improved LaTeX support
Brought to you by:
dhiebert
From: Jan L. <li...@ma...> - 2012-04-06 04:03:44
|
Hi, I made some improvements to the LaTeX parser to make it more useful since the current support is a bit lacking. In particular: - Colons are now allowed in identifiers; this is a common way of separating parts in a label. - LaTeX doesn't have a concept of strings like other languages, so quotes shouldn't be handled specially, otherwise this can lead to whole passages of text being ignored. This fixes bug #2886871. - Sectioning commands now report the scope they're in, for example a subsection will report the section it's in using a 'section:' extension field. This allows for example the Tagbar Vim plugin to display the sections in a properly nested way. At the moment the scopes are separated by two double quotes ('""') as that is a character sequence that shouldn't really appear in normal LaTeX text, but if anyone has a better idea please tell me. - Labels can now be output as an additional kind. They're not listed in their respective scopes as that seems to be what other editors do, too, and I think it makes more sense this way. It's working fine for me (and another guy who tested it together with my Tagbar plugin), but it's still possible that I overlooked something -- if so please tell me. By the way, I think it might be useful to move the ctags development to GitHub since it's much easier to use, the bug tracker is less cumbersome, and pull requests from forks (of which there are at least two already on GitHub) would be easier to integrate. Cheers, Jan -- -[ OpenPGP key ID: 00A0FD5F ]- Pray: To ask the laws of the universe to be annulled on behalf of a single petitioner confessedly unworthy. -- Ambrose Bierce |