Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
derekwyatt committed Jan 20, 2012
0 parents commit 9493ca9
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This vim bundle brings some very basic support for SBT to Vim
6 changes: 6 additions & 0 deletions ftdetect/sbt.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
" Vim detect file
" Language: sbt
" Maintainer: Derek Wyatt <derek@{myfirstname}{mylastname}.org>
" Last Change: 2012 Jan 19

au BufRead,BufNewFile *.sbt set filetype=sbt
27 changes: 27 additions & 0 deletions syntax/sbt.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
" Vim syntax file
" Language: sbt
" Maintainer: Derek Wyatt <derek@{myfirstname}{mylastname}.org>
" Last Change: 2012 Jan 19

if exists("b:current_syntax")
finish
endif

syn region sbtString start="\"[^"]" skip="\\\"" end="\"" contains=sbtStringEscape
syn match sbtStringEscape "\\u[0-9a-fA-F]\{4}" contained
syn match sbtStringEscape "\\[nrfvb\\\"]" contained

syn match sbtIdentitifer "^\S\+\ze\s*:="

syn match sbtSpecial ":="

syn match sbtLineComment "//.*"
syn region sbtComment start="/\*" end="\*/"
syn region sbtDocComment start="/\*\*" end="\*/" keepend

hi link sbtString String
hi link sbtIdentitifer Keyword
hi link sbtSpecial Special
hi link sbtComment Comment
hi link sbtLineComment Comment
hi link sbtDocComment Comment

0 comments on commit 9493ca9

Please sign in to comment.