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 = "haml" |
| 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=haml\ -c |
| 14 | |
| 15 | CompilerSet errorformat= |
| 16 | \Haml\ %trror\ on\ line\ %l:\ %m, |
| 17 | \Syntax\ %trror\ on\ line\ %l:\ %m, |
| 18 | \%-G%.%# |
| 19 | |
| 20 | let &cpo = s:cpo_save |
| 21 | unlet s:cpo_save |
| 22 | |
| 23 | " vim:set sw=2 sts=2: |