From: Jakub Narebski <jnareb@gmail.com>
To: "Alejandro R. Sedeño" <asedeno@mit.edu>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] gitweb: move highlight config out of guess_file_syntax()
Date: Mon, 26 Jul 2010 22:45:32 +0200 [thread overview]
Message-ID: <201007262245.35518.jnareb@gmail.com> (raw)
In-Reply-To: <201007260135.35059.jnareb@gmail.com>
On Mon, 26 Jul 2010, Jakub Narębski wrote:
> On Sat, 24 Jul 2010, Alejandro R. Sedeño wrote:
>
> > Move highlight config out of guess_file_syntax() so that it can be
> > extended/overridden by system/user configuration.
> >
> > Signed-off-by: Alejandro R. Sedeño <asedeno@mit.edu>
>
> Good idea.
>
> The only _possible_ problem is that this configuration is fairly specific
> with respect to currently the only one sipported hightlighter, i.e. the
> external binary 'highlight' (http://www.andre-simon.de). If we are to
> add support for other programs (e.g. GNU Source Highlight) or Perl modules
> for syntax highlighting (e.g. Syntax::Highlight::Engine::Kate or
> Beautifier) in the future, this could mean backward incompatibile change.
>
> The culprit is using extensions (in 'highlight' main syntax files are
> named by extensions) rather than format names in %highlight_basename
> and %highlight_ext, e.g. 'py' rather than 'python'. I don't know if
> it would be much of the problem.
>
> So perhaps I am worrying about nothing...
I am worrying about nothing. The default syntax highlighter would be
'highlight' program; if one wants to change highlighter, one can also
modify required configuration (names of 'syntax' to choose from might
be different for different highlighting engines).
Therefore:
Acked-by: Jakub Narebski <jnareb@gmail.com>
--
Jakub Narebski
Poland
next prev parent reply other threads:[~2010-07-26 20:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-24 19:46 [PATCH] gitweb: move highlight config out of guess_file_syntax() Alejandro R. Sedeño
[not found] ` <201007260135.35059.jnareb@gmail.com>
2010-07-25 23:53 ` "Alejandro R. Sedeño"
2010-07-26 20:48 ` Jakub Narebski
2010-07-26 20:56 ` "Alejandro R. Sedeño"
2010-07-26 20:45 ` Jakub Narebski [this message]
2010-07-28 18:40 ` Alejandro R. Sedeño
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=201007262245.35518.jnareb@gmail.com \
--to=jnareb@gmail.com \
--cc=asedeno@mit.edu \
--cc=git@vger.kernel.org \
/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).