Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Syntax file for hg commit message
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ken Takata  
View profile  
 More options Jul 18 2012, 8:16 am
From: Ken Takata <ken...@csc.jp>
Date: Wed, 18 Jul 2012 05:16:57 -0700 (PDT)
Local: Wed, Jul 18 2012 8:16 am
Subject: Syntax file for hg commit message

Hi all,

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

Regards,
Ken Takata


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ingo Karkat  
View profile  
 More options Jul 18 2012, 8:51 am
From: Ingo Karkat <sw...@ingo-karkat.de>
Date: Wed, 18 Jul 2012 14:51:25 +0200
Local: Wed, Jul 18 2012 8:51 am
Subject: Re: Syntax file for hg commit message
On 18-Jul-2012 14:16:57 +0200, Ken Takata wrote:

> Hi all,

> 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.

Dan LaMotte has already written such a file, but the attempt to get it included
apparently fizzled out.
    http://vim.1045645.n5.nabble.com/hg-commit-syntax-file-td1205296.html

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.

-- regards, ingo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ken Takata  
View profile  
 More options Jul 21 2012, 9:46 am
From: Ken Takata <ken...@csc.jp>
Date: Sat, 21 Jul 2012 06:46:11 -0700 (PDT)
Local: Sat, Jul 21 2012 9:46 am
Subject: Re: Syntax file for hg commit message

Hi,

I have updated the patch.
https://gist.github.com/3129572
(Hg comment lines begin with 'HG:' not 'HG: '.)

The same file (but not a patch) is also available at
https://github.com/k-takata/hg-vim .

2012/07/18 21:51:25 UTC+9 Ingo Karkat:

> Dan LaMotte has already written such a file, but the attempt to get it included
> apparently fizzled out.
>     http://vim.1045645.n5.nabble.com/hg-commit-syntax-file-td1205296.html

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:

HG: added file1
HG: changed file2
HG: removed file3

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.

Regards,
Ken Takata


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ingo Karkat  
View profile  
 More options Jul 21 2012, 3:01 pm
From: Ingo Karkat <sw...@ingo-karkat.de>
Date: Sat, 21 Jul 2012 21:01:04 +0200
Local: Sat, Jul 21 2012 3:01 pm
Subject: Re: Syntax file for hg commit message
On 21-Jul-2012 15:46:11 +0200, Ken Takata wrote:

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.

-- regards, ingo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ken Takata  
View profile  
 More options Aug 1 2012, 6:44 pm
From: Ken Takata <ken...@csc.jp>
Date: Wed, 1 Aug 2012 15:44:50 -0700 (PDT)
Local: Wed, Aug 1 2012 6:44 pm
Subject: Re: Syntax file for hg commit message

Hi,

2012/07/22 4:01:04 UTC+9 Ingo Karkat:

> 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.

I don't think it is important, but if you send me a pull request, I will include it.

> One more request, though: Wouldn't it be more appropriate to name the syntax

> "hgcommit", because it's more precise, and for future compatibility?

OK, I changed the name from "hg" to "hgcommit".
A patch for filetype.vim was also updated.
https://gist.github.com/3129572
(https://github.com/k-takata/hg-vim)

Bram,
I think it is now ready for inclusion.
I hope this would be a help for hg users and also for Vim contributors.

Thank you.
--
Regards,
Ken Takata


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bram Moolenaar  
View profile  
 More options Aug 2 2012, 7:22 am
From: Bram Moolenaar <B...@Moolenaar.net>
Date: Thu, 02 Aug 2012 13:22:33 +0200
Local: Thurs, Aug 2 2012 7:22 am
Subject: Re: Syntax file for hg commit message

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

 /// Bram Moolenaar -- B...@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ken Takata  
View profile  
 More options Aug 21 2012, 9:58 am
From: Ken Takata <ken...@csc.jp>
Date: Tue, 21 Aug 2012 06:58:56 -0700 (PDT)
Local: Tues, Aug 21 2012 9:58 am
Subject: Re: Syntax file for hg commit message

Hi Bram,

I have updated syntax/hgcommit.vim.
I merged a patch from Audrius Kažukauskas:
"Disable spell checking in comment blocks."

The latest version is available at here:
https://github.com/k-takata/hg-vim/blob/master/syntax/hgcommit.vim

Best regards,
Ken Takata


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bram Moolenaar  
View profile   Translate to Translated (View Original)
 More options Aug 23 2012, 11:03 am
From: Bram Moolenaar <B...@Moolenaar.net>
Date: Thu, 23 Aug 2012 17:03:40 +0200
Local: Thurs, Aug 23 2012 11:03 am
Subject: Re: Syntax file for hg commit message

Ken Takata wrote:
> I have updated syntax/hgcommit.vim.
> I merged a patch from Audrius Kažukauskas:
> "Disable spell checking in comment blocks."

> The latest version is available at here:
> https://github.com/k-takata/hg-vim/blob/master/syntax/hgcommit.vim

Thanks, I have included it.

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

 /// Bram Moolenaar -- B...@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »