-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9493ca9
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |