trex 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/trex.rb +10 -4
- metadata +1 -1
data/lib/trex.rb
CHANGED
@@ -67,7 +67,7 @@ Term::ANSIColor::coloring = color_terminal?
|
|
67
67
|
# ============================================================================
|
68
68
|
#TODO track changed files and only recompile then...
|
69
69
|
class TReX
|
70
|
-
VERSION = '1.0.
|
70
|
+
VERSION = '1.0.7'
|
71
71
|
|
72
72
|
attr_reader :options
|
73
73
|
|
@@ -263,16 +263,22 @@ class TReX
|
|
263
263
|
detexed.unlink
|
264
264
|
output.lines do |line|
|
265
265
|
if line.match(/^ /)
|
266
|
-
|
266
|
+
print ' '
|
267
|
+
print line.strip
|
267
268
|
else
|
268
|
-
/(?<file>[^:]+)\:(?<line>\d+)\:(?<rest>.*)/ =~ line
|
269
|
+
/(?<file>[^:]+)\:(?<line>\d+)\:(?<col>\d+)\:(?<rest>[^"]+)(?<match> "[^"]+")(?<trailing>.*)/ =~ line
|
270
|
+
print "\n"
|
269
271
|
print file
|
270
272
|
print ':'
|
271
273
|
print line.to_i + documentStartLine - 1
|
272
274
|
print ':'
|
273
|
-
|
275
|
+
print col
|
276
|
+
print match
|
277
|
+
print rest
|
278
|
+
print trailing.strip
|
274
279
|
end
|
275
280
|
end
|
281
|
+
puts ''
|
276
282
|
end
|
277
283
|
|
278
284
|
# ------------------------------------------------------------------------
|