Re: [Vim-latex-devel] BibTeX completion gets confused by commented out \bibliography

2010-02-01 Thread Jan Larres
Till Maas opensou...@till.name:
 On Sun, Jan 31, 2010 at 07:03:05AM +, Jan Larres wrote:
 I recently found another small bug with the BibTeX completion. If there
 is a commented out \bibliography{} command before the actual one,
 latex-suite erroneously tries to use the commented out one. In my case
 this led to completion not working because the commented out command
 referred to a non-existing file.

 Yes, I can reproduce this. Does someone maybe new a good way to always
 strip %-style comments from a line in a tex file? Currently there are
 afaics several different approaches with regexes in vim-latex, therefore
 I would like to have one way I can use everywhere. It is not just
 everything since a %-sign to the end of the line, as you can see in
 these examples:

 %comment
 this is \%not a comment
 this is \\%again a comment
 this is \\\%not a comment anymore

I don't know about the performance, but what about using synIDattr() for
that? It already does all the work to figure out what is a comment and
what isn't.

Cheers,
Jan

-- 
OpenPGP Key-ID: 00A0FD5F


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel


Re: [Vim-latex-devel] BibTeX completion gets confused by commented out \bibliography

2010-02-01 Thread Till Maas
On Mon, Feb 01, 2010 at 09:17:46AM +, Jan Larres wrote:

 I don't know about the performance, but what about using synIDattr() for
 that? It already does all the work to figure out what is a comment and
 what isn't.

Thanks, using the existing syntax knowledge sounds like a good idea.

Regards
Till


pgpLZD6ssEEHm.pgp
Description: PGP signature
--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com___
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel


[Vim-latex-devel] BibTeX completion gets confused by commented out \bibliography

2010-01-30 Thread Jan Larres
Hi,

I recently found another small bug with the BibTeX completion. If there
is a commented out \bibliography{} command before the actual one,
latex-suite erroneously tries to use the commented out one. In my case
this led to completion not working because the commented out command
referred to a non-existing file.

Since there was a BibTeX example posted recently, you can just reuse
that and insert a line like

%\bibliography{doesnotexist}

before the existing \bibliography{} command.

Cheers,
Jan

-- 
OpenPGP Key-ID: 00A0FD5F


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel