Hi,

I wrote a syntax for a specific configuration file and found that
there are lot's of duplicate patterns.
For example, I define how floats will be represented, lets assume that
the definition looks like:

syntax match   Float                    "\<[0-9]\+\.[0-9]*\>"

But then I find that I need to define a variable that consist of a
quad of floats.
Do I really need to define the syntax in the following way or is there
a better alternative?

syntax match   FloatQuad                "\(\<[0-9]\+\.[0-9]*\s\)\{,4}"


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

Reply via email to