Thursday, August 9, 2012

Small fix for syntax/cfg.vim

Hi all,
I believe that the default syntax file for cfg files (syntax/cfg.vim) should be modified as follows:

20,21c20,21
< "Parameters
< syn match CfgParams ".*="me=e-1 contains=CfgComment
---
> "Parameters (match must be nongreedy)
> syn match CfgParams ".\{-}="me=e-1 contains=CfgComment

This way in a line such as

foo=bar=baz

foo is highlighted as the parameter and bar=bar as the value.

A typical use case is for hgrc files, where values can indeed be strings containing "=".

How should I submit this request "officially"?

Thanks,
Antony

--
You received this message from the "vim_use" 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

No comments: