Re: [Vim-latex-devel] url package syntax error
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sri...@gm...> - 2005-12-08 22:59:26
|
Hi, On 12/6/05, Gabriel Farrell <gs...@pa...> wrote: > I dug around in the ftplugin files. The problem is, say I have > \usepackage{url} in the preamble and somewhere in the article a > paragraph like so: > > The Library of Congess Thomas site (\url{http://thomas.loc.gov/}) > is a good source of information from the federal government. > > For some reason, the bracket immediately following \url isn't noticed > by the syntax highlighting, so everything after is highlighted This was caused by a couple of faulty syntax definitions in the packages/url file which gets sourced once when you insert the \usepackage{url} in the preamble using the <F5> command. For now, I just commented out the syntax commands. The latest dev version on the web-site should have this fix. In the long term, it would be nice to include them without the bugginess. A general question to those who are good with syntax stuff: How does one go about putting :syn commands in a file (which gets sourced only once) so that the commands are invoked whenever the syntax is loaded. I was thinking there might be some nice autocommand which we can catch, but I have had no luck so far. Thanks, Srinath |