view release on metacpan or search on metacpan
bin/transpierce view on Meta::CPAN
if (!-d $working_directory) {
mkdir $working_directory
or die "$working_directory did not exist, and couldn't be created: $!";
}
my $file_string = qr{ (["']) (?<str> .*) \g1 | (?<str> \S+) }x;
my $perm_string = qr{ (?<chmod> 0[0-7]{3}) \s (?<chown> \S+) \s (?<chgrp> \S+) }x;
my $context = undef;
my @files;
view all matches for this distribution
view release on metacpan or search on metacpan
],
'Groovy' => [
[ 'remove_inline' , '//.*$' ],
# separate /* inside quoted strings with two
# concatenated strings split between / and *
[ 'replace_between_regex', '(["\'])(.*?/)(\*.*?)\g1',
'(.*?)' , '"$1$2$1 + $1$3$1$4"'],
[ 'call_regexp_common' , 'C++' ],
],
'Handlebars' => [
[ 'remove_between_general', '{{!--', '--}}' ],
[ 'call_regexp_common' , 'C++' ],
],
'Java' => [
# separate /* inside quoted strings with two
# concatenated strings split between / and *
[ 'replace_between_regex', '(["\'])(.*?/)(\*.*?)\g1',
'(.*?)' , '"$1$2$1 + $1$3$1$4"'],
[ 'call_regexp_common' , 'C++' ],
],
'JavaScript' => [
[ 'call_regexp_common' , 'C++' ],
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/diff2vba.pm view on Meta::CPAN
#
if (m{^
(?<command>
(?<mark> \@{2,} ) [ ]
(?<lines> (?: [-+]\d+(?:,\d+)? [ ] ){2,} )
\g{mark}
(?s:.*)
)
}x) {
my($command, $lines) = @+{qw(command lines)};
my $column = length $+{mark};
view all matches for this distribution
view release on metacpan or search on metacpan
share/lib/git-hub.d/git-hub-open view on Meta::CPAN
#!/usr/bin/env bash
# Try this vim command:
#
# map \gho :let $l=line(".")<cr>:let $p=@%<cr>:!git hub open $p $l<cr><cr>
set -e
command:open() {
local options=()
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/optex/pingu/Picture.pm view on Meta::CPAN
######################################################################
sub read_asc_1 {
local $_ = shift;
s/^#.*\n//mg;
s{ (?<str>(?<col>$color_re)\g{col}*) }{
ansi_color($+{col}, FB x length($+{str}))
}xge;
my @image = /.+/g;
wantarray ? @image : join('', map "$_\n", @image);
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/optex/textconv/ooxml/regex.pm view on Meta::CPAN
my @p;
my $fn_id = "";
while (m{
(?<footnote> <w:footnote \s+ w:id="(?<fn_id>\d+)" )
| <(?<tag>[apw]:p|si)\b[^>]*>(?<para>.*?)</\g{tag}>
}xsg)
{
if ($+{footnote}) {
$fn_id = $+{fn_id};
next;
lib/App/optex/textconv/ooxml/regex.pm view on Meta::CPAN
(?<fn_ref> <w:footnoteReference \s+ w:id="(?<fn_id>\d+)" )
| (?<footnote> <w:footnote \s+ w:id="(?<fn_id>\d+)" )
| (?<footnoteRef> <w:footnoteRef/> )
| (?<br> <[aw]:br/> )
| (?<tab> <w:tab/> | <w:tabs> )
| <(?<tag>(?:[apw]:)?t)\b[^>]*> (?<text>[^<]*?) </\g{tag}>
}xsg)
{
if ($+{fn_ref}) { push @s, "[^$+{fn_id}]" }
elsif ($+{footnote}) { $fn_id = $+{fn_id} }
elsif ($+{footnoteRef}) { push @s, "[^$fn_id]:" }
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/perlbrew.pm view on Meta::CPAN
mkdir -p "$PERLBREW_HOME"
fi
[ -f "$PERLBREW_HOME/init" ] && rm "$PERLBREW_HOME/init"
echo '# DO NOT EDIT THIS FILE' > "$PERLBREW_HOME/init"
command perlbrew env $1 | \grep PERLBREW_ >> "$PERLBREW_HOME/init"
. "$PERLBREW_HOME/init"
__perlbrew_set_path
}
__perlbrew_purify () {
lib/App/perlbrew.pm view on Meta::CPAN
if not test -d "$PERLBREW_HOME"
mkdir -p "$PERLBREW_HOME"
end
echo '# DO NOT EDIT THIS FILE' > "$PERLBREW_HOME/init"
command perlbrew env $argv[1] | \grep PERLBREW_ >> "$PERLBREW_HOME/init"
__source_init
__perlbrew_set_path
end
function __perlbrew_set_path
view all matches for this distribution
view release on metacpan or search on metacpan
script/cdif view on Meta::CPAN
[$w\p{Cyrillic}]+ |
[$w\p{Arabic}]+ |
[$w\p{Thai}]+ |
\d+ |
\p{Punct}+ |
[\ \t\r\f]*\n | \s+ | (.)\g{-1}*
}x;
}
};
##
script/cdif view on Meta::CPAN
elsif (m{^
(?<prefix> $prefix_re)
(?<command>
(?<mark> \@{2,} ) [ ]
(?<lines> (?: [-+]\d+(?:,\d+)? [ ] ){2,} )
\g{mark}
(?s:.*)
)
}x) {
my($prefix, $command, $lines) = @+{qw(prefix command lines)};
my $column = length $+{mark};
view all matches for this distribution