On Sun, Jan 17, 2016 at 02:59:49PM +0100, Bram Moolenaar wrote:
>
> lilydjwg wrote:
>
> > On Sat, Jan 16, 2016 at 04:49:58PM +0100, Bram Moolenaar wrote:
> > >
> > > Patch 7.4.1105
> > > Problem: When using slices there is a mixup of variable name and
> > > namespace.
> > > Solution: Recognize variables that can't be a namespace. (Hirohito
> > > Higashi)
> > > Files: src/eval.c, src/testdir/test_eval.in, src/testdir/test_eval.ok
> >
> > This patch breaks EnhCommentify.vim[1]. It has things like this:
> >
> > if exists(ns .":EnhCommentifyPretty")
> > if {ns}:EnhCommentifyPretty =~? 'ye*s*'
> > let {lns}:ECprettyComments = ' '
> > let {lns}:ECprettyUnComments = ' \='
> > else
> > let {lns}:ECprettyComments = ''
> > let {lns}:ECprettyUnComments = ''
> > endif
> > else
> > let {lns}:ECprettyComments = s:ECprettyComments
> > let {lns}:ECprettyUnComments = s:ECprettyUnComments
> > endif
> >
> > Vim says this:
> >
> > Error detected while processing function <SNR>47_InitScriptVariables:
> > line 15:
> > E121: Undefined variable: g
> > E15: Invalid expression: {ns}:EnhCommentifyPretty =~? 'ye*s*'
> > line 16:
> > E488: Trailing characters
> >
> > Is this intentional?
> >
> > [1]: http://www.vim.org/scripts/script.php?script_id=23
>
> That's a bug. Apparently there is no test for using {ns} like this.
I've never seen this kind of usage before, and I haven't figure out what
patch 1105 is supposed to do (I know there must be a thread talking
about it, but I have too many mails and so little time).
--
Best regards,
lilydjwg
--
--
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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.