Was only working with one prefix and one suffix:
a=b c=d e=f
(finding c=d).
Would fail given:
a=b c=d e=f g=h
Which means that it would end up creating a dupe rule for "c=d",
potentially, which Vim would then collapse.
" Check for existing setting.
let l:matches = matchlist(
\ l:original,
- \ '^\([^ ]\+ \)\?' .
+ \ '^\([^ ]\+ \)*' .
\ '\(' . l:lhs . '=[^ ]\+\)' .
- \ '\( .\+\)\?$'
+ \ '\( .\+\)*$'
\ )
if l:matches == []
" No setting, add one with just a:style in it