I wrote a syntax file for hg (Mercurial) commit message. I'm not familiar with hg and Vim syntax file, but any comments are welcome. https://gist.github.com/3129572
I wonder why Vim uses hg for SCM but Vim doesn't have a syntax file for that.
BTW, I have posted several messages to this ML, but some of my posts are not found on the Web interface. Is my e-mail address blocked? For example, only Bram's response can be seen in the following thread: https://groups.google.com/d/topic/vim_dev/Me2Q6HDtC1I/discussion
> I wrote a syntax file for hg (Mercurial) commit message.
> I'm not familiar with hg and Vim syntax file, but any comments are welcome.
> https://gist.github.com/3129572
> I wonder why Vim uses hg for SCM but Vim doesn't have a syntax file for that.
Superficially, yours looks similar to his, but maybe you'll find something in
there that you haven't considered yet. I'd definitely welcome an inclusion in
the Vim runtime.
Thanks for your comment. Hmm, it seems that Dan's file was not included because of copyright problem.
> Superficially, yours looks similar to his, but maybe you'll find something in > there that you haven't considered yet. I'd definitely welcome an inclusion in > the Vim runtime.
I looked into his file. I think mine is a little bit simpler and it's enough. An obvious difference can be seen when coloring the following lines:
> Thanks for your comment.
> Hmm, it seems that Dan's file was not included because of copyright problem.
>> Superficially, yours looks similar to his, but maybe you'll find something in
>> there that you haven't considered yet. I'd definitely welcome an inclusion in
>> the Vim runtime.
> I looked into his file.
> I think mine is a little bit simpler and it's enough.
> An obvious difference can be seen when coloring the following lines:
> Mine:
> The status (added, changed or removed) and the file name use the same color.
> Each status uses a different color. (same as svn.vim)
> His:
> The status and the file name use different colors.
> All status use the same color.
I like the different highlighting of added / changed / removed. Having a
different group for the file name is probably less important, but would be easy
to add, too.
One more request, though: Wouldn't it be more appropriate to name the syntax
"hgcommit", because it's more precise, and for future compatibility? Though many
proponents frown on those comparisons, a look at the _other_ favorite DVCS
reveals that they have gitcommit.vim + gitconfig.vim + gitrebase.vim +
gitsendemail.vim already. Maybe the Mercurial support in Vim will grow
similarly, and then your syntax would have taken up the core "hg.vim" name already.
> Bram,
> I think it is now ready for inclusion.
> I hope this would be a help for hg users and also for Vim contributors.
Thanks! I'll include it.
If you make improvements, please email me the new file.
-- Some of the well know MS-Windows errors:
EMEMORY Memory error caused by..., eh...
ELICENSE Your license has expired, give us more money!
EMOUSE Mouse moved, reinstall Windows
EILLEGAL Illegal error, you are not allowed to see this
EVIRUS Undetectable virus found
It's easier for me if you email the new version. Also for archiving
reasons.
-- In war we're tough and able.
Quite indefatigable
Between our quests
We sequin vests
And impersonate Clark Gable
It's a busy life in Camelot.
I have to push the pram a lot.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD