Bram Moolenaar | 543b7ef | 2013-06-01 14:50:56 +0200 | [diff] [blame] | 1 | if exists("current_compiler") |
| 2 | finish |
| 3 | endif |
| 4 | let current_compiler = "sass" |
| 5 | |
| 6 | if exists(":CompilerSet") != 2 " older Vim always used :setlocal |
| 7 | command -nargs=* CompilerSet setlocal <args> |
| 8 | endif |
| 9 | |
| 10 | let s:cpo_save = &cpo |
| 11 | set cpo-=C |
| 12 | |
| 13 | CompilerSet makeprg=sass\ -c |
| 14 | |
| 15 | CompilerSet errorformat= |
| 16 | \%f:%l:%m\ (Sass::Syntax%trror), |
| 17 | \%ESyntax\ %trror:%m, |
| 18 | \%C%\\s%\\+on\ line\ %l\ of\ %f, |
| 19 | \%Z%.%#, |
| 20 | \%-G%.%# |
| 21 | |
| 22 | let &cpo = s:cpo_save |
| 23 | unlet s:cpo_save |
| 24 | |
| 25 | " vim:set sw=2 sts=2: |