Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Curly braces inside q// match against real curly braces #86

Closed
shlomif opened this Issue · 4 comments

2 participants

Shlomi Fish Rob Hoelz
Shlomi Fish

In this file:

http://www.shlomifish.org/Files/files/code/vim-perl-issue-curly-braces-inside-q.txt

One cannot match the very first curly brace (at the start of line 2) because the ones inside the q/../ qualify as such. I am using commit b94578e .

Please look into it.

Regards,

-- Shlomi Fish

P.S: I discovered that one cannot attach files to issues of GitHub's issue tracker:

http://stackoverflow.com/questions/10963205/how-to-attach-file-to-a-github-issue

I guess it can suck a lot less.

Rob Hoelz
Owner

@shlomif I noticed the file you linked to is gone. Could you please restore it?

Shlomi Fish

@hoelzro : I am including it below:

# Test the { ? and { [command] commands.
{
    my $wrapper = DebugWrap->new(
        {
            cmds =>
            [
                q/{ ?/,
                q/{ l/,
                q/{ ?/,
                q/b 5/,
                q/c/,
                q/q/,
            ],
            prog => '../lib/perl5db/t/disable-breakpoints-1',
        }
    );

    $wrapper->contents_like(qr#
        ^No\ pre-debugger\ actions\.\n
        .*?
        ^pre-debugger\ commands:\n
        \s+\{\ --\ l\n
        .*?
        ^5==>b\s+\$x\ =\ "FirstVal";\n
        6\s*\n
        7:\s+\$dummy\+\+;\n
        8\s*\n
        9:\s+\$x\ =\ "SecondVal";\n

        #msx,
        'Test the pre-prompt debugger commands',
    );
}

Call it "vim.pl" and edit it using gvim.

By the way, why did it take so long to respond?

Regards,

-- @shlomif .

Rob Hoelz
Owner

@shlomif Sorry for the long response time; I joined this group to make improvements to the Perl 6 syntax file. However, the 7.4 release is coming up, and I'd like to resolve large outstanding bugs before we send Bram the files to include in the release.

Rob Hoelz
Owner

This is now fixed, as long as you're using the matchit plugin. Unfortunately, Vim doesn't support this kind of thing for non-double quoted strings by default.

Rob Hoelz hoelzro closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.