Ed Catmur wrote:
> [...]
> 3. Marking escaped quotes as errors after parameter dereference
> operators:
>
>> echo ${foo+\"yes\"}
>> echo ${foo+\'yes\'}
>>
>
> 4. Escaping close parens broken in case matches:
>
>> case x in \));; esac
>>
>
> 5. Escaping quotes broken in lots of places:
> echo \"hello\"
> echo \'hello\'
> echo \`hello\`
>
> [...]
>
\\\@<![something]
what means "[something] not preceded by a backslash" can be replaced with
\(^\|[^\\]\)\(\\\\\)*\zs[something]
what means "[something] not preceded be a non escaped backslash".
Here is a version without escaping and with some spaces, while it is not a
valid Vim regex it maybe easier to read:
( ^ | [^\\] ) ( \\ \\ )* \zs [something]
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---