File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 <string >nop </string >
77 <key >command </key >
88 <string >#!/usr/bin/env ruby18
9+ require "shellwords"
910require ENV['TM_SUPPORT_PATH'] + '/lib/textmate'
11+
1012puts "Using " + `"${TM_RUBY:=ruby}" -e'puts "ruby-" + RUBY_VERSION.to_s'`.chomp + " / " + `"${TM_ERB:=erb}" --version 2>& 1`.chomp
11- result = `"${TM_ERB:=erb}" -T - -x | "${TM_RUBY:=ruby}" -c 2>& 1`
12- puts result
13- TextMate.go_to :line => $1 if result =~ /-:(\d+):/ </string >
13+ puts result = `"${TM_ERB:=erb}" -T - -x | "${TM_RUBY:=ruby}" -c 2>& 1`
14+
15+ if result =~ /-:(\d+):(.*)/
16+ TextMate.go_to :line => $1
17+ `"$TM_MATE" -c warning`
18+ result.each_line do |line|
19+ if line =~ /-:(\d+):(.*)/
20+ `"$TM_MATE" --set-mark warning:#{Shellwords.escape($2)} --line #{$1}`
21+ end
22+ end
23+ else
24+ `"$TM_MATE" -c warning`
25+ end
26+ </string >
1427 <key >input </key >
1528 <string >document </string >
1629 <key >inputFormat </key >
Original file line number Diff line number Diff line change 66 <string >nop </string >
77 <key >command </key >
88 <string >#!/usr/bin/env ruby18
9+ require "shellwords"
910require ENV['TM_SUPPORT_PATH'] + '/lib/textmate'
11+
1012puts `"${TM_RUBY:=ruby}" -e'puts "Using ruby-" + RUBY_VERSION.to_s'`
11- result = `"${TM_RUBY:=ruby}" -wc 2>& 1`
12- puts result
13- TextMate.go_to :line => $1 if result =~ /-:(\d+):/
13+ puts result = `"${TM_RUBY:=ruby}" -wc 2>& 1`
14+
15+ if result =~ /-:(\d+):(.*)/
16+ TextMate.go_to :line => $1
17+ `"$TM_MATE" -c warning`
18+ result.each_line do |line|
19+ if line =~ /-:(\d+):(.*)/
20+ `"$TM_MATE" --set-mark warning:#{Shellwords.escape($2)} --line #{$1}`
21+ end
22+ end
23+ else
24+ `"$TM_MATE" -c warning`
25+ end
1426 </string >
1527 <key >input </key >
1628 <string >document </string >
You can’t perform that action at this time.
0 commit comments