Re: [PATCH] be more vim-ish, and also syntax hilight Signed-off-by lines.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeff King
Date: Tuesday, October 17, 2006 - 11:59 pm

On Wed, Oct 18, 2006 at 02:39:35AM +0200, Pierre Habouzit wrote:


I think this is a good change (along with commenting), but please write
a more descriptive commit message than "be more vim-ish" (I wouldn't
mind seeing this and the highlighting change broken into two patches,
since they are functionally completely unrelated).


You mention gitEmail but never define it. Are people using other things
besides Signed-off-by? I think we might do better to simply write:
  syn region gitCommentHeader start=/^[^ ]\+:/ end=/$/ contains=gitCommentValue
  syn region gitCommentValue contained start=/\s/ end=/$/

Highlighting only the header is inconsistent with other highlighting
(e.g., all of "new file: foo" is highlighted), but it looks so ugly to
highlight the whole line, so I think this is fine.

-Peff
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
contrib/vim patches, replace the previous set, Pierre Habouzit, (Tue Oct 17, 5:38 pm)
contrib/vim patches, replace the previous set, Pierre Habouzit, (Tue Oct 17, 5:39 pm)
Make the ftplugin right wrt gitdir, Pierre Habouzit, (Tue Oct 17, 5:47 pm)
[PATCH] be more robust wrt the git-dir., Pierre Habouzit, (Tue Oct 17, 5:47 pm)
Re: [PATCH] be more vim-ish, and also syntax hilight Signe ..., Jeff King, (Tue Oct 17, 11:59 pm)
Re: Make the ftplugin right wrt gitdir, Jeff King, (Wed Oct 18, 12:02 am)
Re: Make the ftplugin right wrt gitdir, Pierre Habouzit, (Wed Oct 18, 1:10 am)
Re: Make the ftplugin right wrt gitdir, Jeff King, (Wed Oct 18, 2:02 am)
Re: Make the ftplugin right wrt gitdir, Pierre Habouzit, (Wed Oct 18, 2:07 am)
Re: Make the ftplugin right wrt gitdir, Jeff King, (Wed Oct 18, 2:46 am)