mirror of
https://github.com/sstent/sublime-text-3.git
synced 2026-02-07 04:52:12 +00:00
backing up sublime settings
This commit is contained in:
10
Packages/SublimeREPL/config/Perl/Default.sublime-commands
Normal file
10
Packages/SublimeREPL/config/Perl/Default.sublime-commands
Normal file
@@ -0,0 +1,10 @@
|
||||
[
|
||||
{
|
||||
"caption": "SublimeREPL: Perl",
|
||||
"command": "run_existing_window_command", "args":
|
||||
{
|
||||
"id": "repl_Perl",
|
||||
"file": "config/Perl/Main.sublime-menu"
|
||||
}
|
||||
}
|
||||
]
|
||||
27
Packages/SublimeREPL/config/Perl/Main.sublime-menu
Normal file
27
Packages/SublimeREPL/config/Perl/Main.sublime-menu
Normal file
@@ -0,0 +1,27 @@
|
||||
[
|
||||
{
|
||||
"id": "tools",
|
||||
"children":
|
||||
[{
|
||||
"caption": "SublimeREPL",
|
||||
"mnemonic": "r",
|
||||
"id": "SublimeREPL",
|
||||
"children":
|
||||
[
|
||||
{"command": "repl_open",
|
||||
"caption": "Perl",
|
||||
"id": "repl_Perl",
|
||||
"mnemonic": "p",
|
||||
"args": {
|
||||
"type": "subprocess",
|
||||
"encoding": "utf8",
|
||||
"cmd": ["perl","${packages}/SublimeREPL/config/Perl/re.pl"],
|
||||
"cwd": "$file_path",
|
||||
"external_id": "perl",
|
||||
"syntax": "Packages/Perl/Perl.tmLanguage"
|
||||
}
|
||||
}
|
||||
]
|
||||
}]
|
||||
}
|
||||
]
|
||||
13
Packages/SublimeREPL/config/Perl/re.pl
Normal file
13
Packages/SublimeREPL/config/Perl/re.pl
Normal file
@@ -0,0 +1,13 @@
|
||||
$| = 1;
|
||||
|
||||
while(true) {
|
||||
print "perl> ";
|
||||
$line=<>;
|
||||
$value=eval($line);
|
||||
$error=$@;
|
||||
if( $error ne "" ) {
|
||||
print $error;
|
||||
} else {
|
||||
print "$value\n";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user