Skip to content

Commit

Permalink
use more vim
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Aug 12, 2010
1 parent 3d4dff5 commit 2b66547
Show file tree
Hide file tree
Showing 84 changed files with 124 additions and 45 deletions.
2 changes: 1 addition & 1 deletion src/ARE/Actions.pm
Expand Up @@ -113,4 +113,4 @@ sub buildsub($rpast, $block = PAST::Block.new() ) {
$block;
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/ARE/Compiler.pm
Expand Up @@ -6,4 +6,4 @@ class ARE::Compiler is HLL::Compiler {
}
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/ARE/Grammar.pm
Expand Up @@ -46,4 +46,4 @@ token metachar:sym<[> {
proto token backslash { <...> }
token backslash:sym<w> { $<sym>=[<[dswDSW]>] }

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/FileGlob/Actions.pm
Expand Up @@ -8,4 +8,4 @@ method metachar:sym<{>($/) {
make $ast;
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/FileGlob/Compiler.pm
Expand Up @@ -6,4 +6,4 @@ class FileGlob::Compiler is HLL::Compiler {
}
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/FileGlob/Grammar.pm
Expand Up @@ -9,4 +9,4 @@ token word { <-[,}]>+ }

token barechar { <-[\\\[*+?{]> }

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/Actions.pm
Expand Up @@ -271,4 +271,4 @@ method index:sym<end->($/) {
make (2, -$<a>.ast);
}
# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/Compiler.pm
Expand Up @@ -6,4 +6,4 @@ INIT {
Partcl::Compiler.parseactions(Partcl::Actions);
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/Grammar.pm
Expand Up @@ -175,4 +175,4 @@ token infix:sym<!=> { <sym> <O('%equality_numeric, :pirop<isne Inn>')> }
token infix:sym<eq> { <sym> <O('%equality_string, :pirop<iseq Iss>')> }
token infix:sym<ne> { <sym> <O('%equality_string, :pirop<isne Iss>')> }

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/Operators.pm
Expand Up @@ -10,4 +10,4 @@ sub &infix:<==>($a, $b) {

}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/after.pm
Expand Up @@ -5,3 +5,5 @@ our sub after(*@args) {
pir::sleep__vN(+@args[0] / 1000);
'';
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/append.pm
Expand Up @@ -28,3 +28,5 @@ our sub append(*@args) {

set($varName, $result);
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/apply.pm
Expand Up @@ -4,3 +4,5 @@ our sub apply(*@args) {
}
'';
}

# vim: expandtab shiftwidth=4 ft=perl6:
3 changes: 1 addition & 2 deletions src/Partcl/commands/array.pm
Expand Up @@ -199,5 +199,4 @@ my sub unset($arrayName, $array, $pattern = '*') {
'';
}
# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/binary.pm
Expand Up @@ -21,3 +21,5 @@ our sub binary(*@args) {
}
'';
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/break.pm
Expand Up @@ -11,4 +11,4 @@ INIT {
}
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/catch.pm
Expand Up @@ -34,3 +34,5 @@ our sub catch(*@args) {
}
$retval;
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/cd.pm
Expand Up @@ -11,3 +11,5 @@ our sub cd(*@args) {
}
pir::new('OS').chdir($dir);
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/concat.pm
Expand Up @@ -5,3 +5,5 @@ our sub concat(*@args) {
}
$result;
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/continue.pm
Expand Up @@ -8,4 +8,4 @@ INIT {
}
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/dict.pm
Expand Up @@ -46,4 +46,4 @@ our sub dict(*@args) {
}
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/eof.pm
Expand Up @@ -5,3 +5,5 @@ our sub eof(*@args) {
my $chan := _getChannel(@args[0]);
0;
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/error.pm
Expand Up @@ -24,4 +24,4 @@ INIT {
}
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/eval.pm
Expand Up @@ -11,3 +11,5 @@ our sub eval(*@args) {
}
&sub();
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/exit.pm
Expand Up @@ -5,3 +5,5 @@ our sub exit(*@args) {
my $code := @args[0] // 0;
pir::exit($code);
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/expr.pm
Expand Up @@ -21,3 +21,5 @@ our sub expr(*@args) {
}
&sub();
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/file.pm
Expand Up @@ -75,4 +75,4 @@ our sub file(*@args) {
}
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/fileevent.pm
Expand Up @@ -17,3 +17,5 @@ our sub fileevent(*@args) {

'';
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/flush.pm
Expand Up @@ -8,3 +8,5 @@ our sub flush(*@args) {
}
'';
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/for.pm
Expand Up @@ -22,3 +22,5 @@ our sub for(*@args) {
}
'';
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/foreach.pm
Expand Up @@ -53,3 +53,5 @@ our sub foreach(*@args) {
}
'';
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/format.pm
Expand Up @@ -5,3 +5,5 @@ our sub format(*@args) {

pir::sprintf__ssp(@args.shift(), @args)
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/gets.pm
Expand Up @@ -22,3 +22,5 @@ our sub gets(*@args) {
return $result;
}
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/glob.pm
Expand Up @@ -20,3 +20,5 @@ our sub glob(*@args) {
}
@retval;
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/global.pm
Expand Up @@ -9,3 +9,5 @@ our sub global (*@args) {
}
'';
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/if.pm
Expand Up @@ -23,3 +23,5 @@ our sub if(*@args) {
}
'';
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/incr.pm
Expand Up @@ -15,3 +15,5 @@ our sub incr (*@args) {
}
return set($var, pir::add__Iii(set($var), $val // 1));
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/info.pm
Expand Up @@ -243,4 +243,4 @@ my sub vars($pattern = '*') {
@result;
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/interp.pm
Expand Up @@ -47,4 +47,4 @@ our sub interp(*@args) {
}
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/join.pm
Expand Up @@ -5,3 +5,5 @@ our sub join(*@args) {

pir::join(@args[1] // " ", @args[0].getList());
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/lappend.pm
Expand Up @@ -19,4 +19,4 @@ our sub lappend(*@args) {
return set($var,@list);
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/lassign.pm
Expand Up @@ -16,4 +16,4 @@ our sub lassign(*@args) {
return @list;
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/lindex.pm
Expand Up @@ -27,4 +27,4 @@ our sub lindex(*@args) {
return $result;
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/linsert.pm
Expand Up @@ -18,4 +18,4 @@ our sub linsert(*@args) {
return @list;
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/list.pm
Expand Up @@ -2,4 +2,4 @@ our sub list(*@args) {
return @args;
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/llength.pm
Expand Up @@ -6,4 +6,4 @@ our sub llength(*@args) {
+@args[0].getList();
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/lrange.pm
Expand Up @@ -18,4 +18,4 @@ our sub lrange(*@args) {
return @retval;
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/lrepeat.pm
Expand Up @@ -16,4 +16,4 @@ our sub lrepeat(*@args) {
return @result;
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/lreplace.pm
Expand Up @@ -30,4 +30,4 @@ our sub lreplace(*@args) {
return @list;
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/lreverse.pm
Expand Up @@ -5,4 +5,4 @@ our sub lreverse(*@args) {
return @args[0].getList().reverse();
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/lset.pm
Expand Up @@ -43,4 +43,4 @@ our sub lset(*@args) {
}
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/lsort.pm
Expand Up @@ -63,4 +63,4 @@ my sub sort_real($a, $b) {
pir::cmp__inn(pir::clone($a), pir::clone($b));
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/namespace.pm
Expand Up @@ -178,4 +178,4 @@ my sub which(*@args) {
'';
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/package.pm
Expand Up @@ -40,4 +40,4 @@ our sub package(*@args) {
error("bad option \"$cmd\": must be forget, ifneeded, names, prefer, present, provide, require, unknown, vcompare, versions, or vsatisfies");
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/proc.pm
Expand Up @@ -59,3 +59,5 @@ our sub proc(*@args) {
pir::setprop($thing, 'body', $body);
'';
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/puts.pm
Expand Up @@ -19,3 +19,5 @@ our sub puts(*@args) {
pir::print__vps($chanObj, "\n") if $nl;
'';
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/pwd.pm
@@ -1,3 +1,5 @@
our sub pwd () {
pir::new('OS').'cwd'();
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/regexp.pm
Expand Up @@ -18,3 +18,5 @@ our sub regexp(*@args) {

?$match;
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/rename.pm
Expand Up @@ -10,3 +10,5 @@ our sub rename(*@args) {
# XXX actually rename
}
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/return.pm
Expand Up @@ -4,4 +4,4 @@ INIT {
GLOBAL::return := -> $result = '' { return $result; }
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/set.pm
Expand Up @@ -58,3 +58,5 @@ our sub set(*@args) {
}
$result;
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/socket.pm
@@ -1,3 +1,5 @@
our sub socket(*@args) {
'';
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/source.pm
@@ -1,3 +1,5 @@
our sub source($filename) {
Partcl::Compiler.evalfiles($filename);
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/split.pm
Expand Up @@ -36,3 +36,5 @@ our sub split(*@args) {
@result := list(|@result); # convert to a TclList
@result;
}

# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 1 addition & 1 deletion src/Partcl/commands/string.pm
Expand Up @@ -544,4 +544,4 @@ my sub wordstart($string, $index) {
++$index;
}

# vim: filetype=perl6:
# vim: expandtab shiftwidth=4 ft=perl6:
2 changes: 2 additions & 0 deletions src/Partcl/commands/subst.pm
@@ -1,3 +1,5 @@
our sub subst(*@args) {
'';
}

# vim: expandtab shiftwidth=4 ft=perl6:

0 comments on commit 2b66547

Please sign in to comment.