Hello;I have a suggestion for the sshconfig Vim syntax file you maintain.Because everything that follows a Host pragma must by definition be intended as a host, and not necessarily one that actually resolves via DNS (e.g. it could be an abbreviation for an actual host specified in the section by a HostName command), both this and the HostName option I think should always fall into the sshconfigHostPort group.Here's a suggested patch if you agree. It uses zero-width lookbehind assertions.--- sshconfig.vim 2012-02-19 03:47:47.000000000 +1300+++ sshconfig.fix.vim 2012-02-19 03:47:38.000000000 +1300@@ -92,6 +92,8 @@syn match sshconfigHostPort "\<\(\d\{1,3}\.\)\{3}\d\{1,3}\(:\d\+\)\?\>"syn match sshconfigHostPort "\<\([-a-zA-Z0-9]\+\.\)\+[-a-zA-Z0-9]\{2,}\(:\d\+\)\?\>"syn match sshconfigHostPort "\<\(\x\{,4}:\)\+\x\{,4}[:/]\d\+\>"+syn match sshconfigHostPort "\(Host \)\@<=.\+"+syn match sshconfigHostPort "\(HostName \)\@<=.\+"" case offAnd an example of a config file stanza for which this fixes the highlighting for the word "webserver":Host webserver webserver.example.comProxyCommand ssh proxy.example.com nc %h %p--Tom@Sanctum
> I have an update for the sshconfig.vim syntax file, which has been
> suggested by Tom Ryder.
>
> The output of hg diff is as follows:
Thanks.
Can we adjust the header to remove:
" Modified By: Thilo Six
" Originally: 2009-07-09
Now that you, as the maintainer, sent a new version I don't think we
need these.
--
You can't have everything. Where would you put it?
-- Steven Wright
/// Bram Moolenaar -- Br...@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 ///
Hello
> Can we adjust the header to remove:
>
> " Modified By: Thilo Six
> " Originally: 2009-07-09
>
> Now that you, as the maintainer, sent a new version I don't think we
> need these.
/me thinks so, too.
--
Regards,
Thilo
4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6 7C18 89A4 A2A0 C70B 1A8F
> I would be interested in helping out for known problems in other
> syntax files; I've been wanting to contribute to Vim for quite a
> while.
That would be appreciated. There are quite a number runtimefiles which use
linecontinuation but are known not to take care of cpoptions, see ':h cpo-C'.
When providing patches, one might also check the value of 'ts' in modelines. For
official runtimefiles a 'ts=8' is preferred. Probably a reindent is necessary then.
Also i think there a quite a common mistake which i made myself, too. Inside
square brackets '[]' characters like '[.~' do not need to be escaped. But then
one can find often '[\[\~\.]' and so on. These just mean '\' is added to list
which might or might not be what is intended.
I'm currently a bit short of time myself.
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
> I agree with Thilo and Bram and have removed the two lines and reattached
> the file.
I'll include it, thanks.
--
I AM THANKFUL...
...for the clothes that fit a little too snug because it
means I have more than enough to eat.