trex 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/trex.rb +10 -4
  2. 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.4'
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
- puts line
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
- puts rest
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
  # ------------------------------------------------------------------------
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: