On 10/31/2011 12:53 PM, Ingo Karkat wrote:
On 31-Oct-2011 20:37, Ernie Rael wrote:
Off topic, but I've been wondering...
Is there an option to use perl/python syntax for RE? If not, would that be a
welcome patch? Could it be done with vim's scripting?
Both have unique constructs, cp. :help perl-patterns.
True. I am willing to give up the vim only features and the perl only
features to use a syntax I already use a lot (a syntax which is also the
base of the java syntax).
Also an optional string which indicates which chars need escaping
(like ')' or '?') might be useful.
Unless I misunderstand, isn't that achieved through changing the magic-ness of a
pattern: \v \V \m \M ?!
It's similar, but a list of chars that need escaping is more flexible. I
could specify that '(' needs to be escaped to mean grouping and that '?'
does not need to be escaped to mean optional. Using the list could be
dependent on the "magic-ness of a pattern".
-- regards, ingo
--
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