├── .gitignore ├── README ├── ftdetect └── sbt.vim └── syntax └── sbt.vim /.gitignore: -------------------------------------------------------------------------------- 1 | *.sw[op] 2 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | This vim bundle brings some very basic support for SBT to Vim 2 | -------------------------------------------------------------------------------- /ftdetect/sbt.vim: -------------------------------------------------------------------------------- 1 | " Vim detect file 2 | " Language: sbt 3 | " Maintainer: Derek Wyatt 4 | " Last Change: 2012 Jan 19 5 | 6 | au BufRead,BufNewFile *.sbt set filetype=sbt.scala 7 | -------------------------------------------------------------------------------- /syntax/sbt.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: sbt 3 | " Maintainer: Derek Wyatt 4 | " Last Change: 2013 Oct 20 5 | 6 | if exists("b:current_syntax") 7 | finish 8 | endif 9 | 10 | runtime! syntax/scala.vim 11 | 12 | syn region sbtString start="\"[^"]" skip="\\\"" end="\"" contains=sbtStringEscape 13 | syn match sbtStringEscape "\\u[0-9a-fA-F]\{4}" contained 14 | syn match sbtStringEscape "\\[nrfvb\\\"]" contained 15 | 16 | syn match sbtIdentitifer "^\S\+\ze\s*\(:=\|++=\|+=\|<<=\|<+=\)" 17 | syn match sbtBeginningSeq "^[Ss]eq\>" 18 | syn match sbtAddPlugin "^addSbtPlugin\>" 19 | 20 | syn match sbtSpecial "\(:=\|++=\|+=\|<<=\|<+=\)" 21 | 22 | syn match sbtLineComment "//.*" 23 | syn region sbtComment start="/\*" end="\*/" 24 | syn region sbtDocComment start="/\*\*" end="\*/" keepend 25 | 26 | hi link sbtString String 27 | hi link sbtIdentitifer Keyword 28 | hi link sbtBeginningSeq Keyword 29 | hi link sbtAddPlugin Keyword 30 | hi link sbtSpecial Special 31 | hi link sbtComment Comment 32 | hi link sbtLineComment Comment 33 | hi link sbtDocComment Comment 34 | --------------------------------------------------------------------------------