From: Nikolai Weibull <mailing-lists.context-users@rawuncut.elitemail.org>
Subject: Re: TeX + Metapost syntax highlighting in Vim
Date: Fri, 15 Jul 2005 18:01:51 +0200 [thread overview]
Message-ID: <20050715160151.GA5315@puritan.pnetwork> (raw)
In-Reply-To: <e5d3f265050714121946f97d11@mail.gmail.com>
VnPenguin wrote:
> Just tested your context.vim under vim 6.3.x; It's better than
> tex/latex standard syntax in vim 6.3 IMHO.
Great, thanks!
> I have only a small remark: The following code is valid in ConTeXt:
>
> \useURL [book-ns-openssl][http://www.amazon.com/exec/obidos/ASIN/
> 059600270X/qid%3D1024342376/103-8123753-9606263][][Network
> Security with OpenSSL]
> but the syntax considers % like a comment mark, so I see another color
> for the text after %.
> It's possible to make the comment pattern smarter ? :)
Hm, probably not. The problem with TeX is that it's so goddam flexible
when it comes to "syntax". The whole deal with turning $ on and off, %
into something else, and so on is really hard to capture in a syntax
highlighter. To do so successfully, the highlighter would more or less
have to parse the TeX document itself to understand when and where to do
what. I guess special cases like the one above (with a very weird URL
indeed) so that \useURL would be parsed differently, but it's impossible
to always get these things right,
nikolai
--
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
next prev parent reply other threads:[~2005-07-15 16:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-08 16:10 Mojca Miklavec
2005-07-08 17:48 ` Thomas A. Schmitz
2005-07-08 22:14 ` VnPenguin
2005-07-14 14:50 ` Christopher Creutzig
2005-07-14 16:16 ` Thomas A. Schmitz
2005-07-08 17:53 ` Hans Hagen
2005-07-08 21:32 ` Nikolai Weibull
2005-07-12 13:38 ` Mojca Miklavec
2005-07-08 21:28 ` Nikolai Weibull
2005-07-14 19:19 ` VnPenguin
2005-07-15 16:01 ` Nikolai Weibull [this message]
2005-09-24 21:41 ` Nikolai Weibull
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050715160151.GA5315@puritan.pnetwork \
--to=mailing-lists.context-users@rawuncut.elitemail.org \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).