stonean/slim — pull request #294 by rbrown (2012-09-22 21:47:04+00:00)
Title: Add explicit column number to SyntaxError.to_s

The ^ column marker in the current output ignores any leading whitespace, so I
am unable to use it to calculate the column to highlight the column in vim. This
patch adds an explicit column number.

--

I had to edit my Rakefile to `require 'bundler/setup'` for it to see the bundler version of temple, but I left that out of the commit as I assume you know better than me what you're doing there.

```
rake test
/Users/rb/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -I"lib:lib:test/core" -I"/Users/rb/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib" "/Users/rb/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb" "test/core/test_code_blocks.rb" "test/core/test_code_escaping.rb" "test/core/test_code_evaluation.rb" "test/core/test_code_output.rb" "test/core/test_code_structure.rb" "test/core/test_embedded_engines.rb" "test/core/test_encoding.rb" "test/core/test_html_escaping.rb" "test/core/test_html_structure.rb" "test/core/test_parser_errors.rb" "test/core/test_pretty.rb" "test/core/test_ruby_errors.rb" "test/core/test_slim_template.rb" "test/core/test_text_interpolation.rb" "test/core/test_thread_options.rb"
Run options: --seed 39728

# Running tests:

......................................................................................................................................................................................................................

Finished tests in 1.091355s, 196.0865 tests/s, 224.4916 assertions/s.

214 tests, 245 assertions, 0 failures, 0 errors, 0 skips
/Users/rb/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -I"lib:lib:test/core" -I"/Users/rb/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib" "/Users/rb/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb" "test/logic_less/test_logic_less.rb" "test/logic_less/test_wrapper.rb"
Run options: --seed 11640

# Running tests:

.........

Finished tests in 0.050753s, 177.3294 tests/s, 177.3294 assertions/s.

9 tests, 9 assertions, 0 failures, 0 errors, 0 skips
/Users/rb/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -I"lib:lib:test/core" -I"/Users/rb/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib" "/Users/rb/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb" "test/translator/test_translator.rb"
Run options: --seed 43217

# Running tests:

....

Finished tests in 0.118099s, 33.8699 tests/s, 76.2072 assertions/s.

4 tests, 9 assertions, 0 failures, 0 errors, 0 skips
```