vim-polyglot/syntax/sbt.vim

38 lines
1.0 KiB
VimL
Raw Normal View History

if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'sbt') != -1
finish
endif
2013-09-12 11:02:41 -04:00
" Vim syntax file
" Language: sbt
" Maintainer: Derek Wyatt <derek@{myfirstname}{mylastname}.org>
2013-11-02 18:27:57 -04:00
" Last Change: 2013 Oct 20
2013-09-12 11:02:41 -04:00
if exists("b:current_syntax")
finish
endif
runtime! syntax/scala.vim
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 sbtBeginningSeq "^[Ss]eq\>"
2013-11-02 18:27:57 -04:00
syn match sbtAddPlugin "^addSbtPlugin\>"
2013-09-12 11:02:41 -04:00
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 sbtBeginningSeq Keyword
2013-11-02 18:27:57 -04:00
hi link sbtAddPlugin Keyword
2013-09-12 11:02:41 -04:00
hi link sbtSpecial Special
hi link sbtComment Comment
hi link sbtLineComment Comment
hi link sbtDocComment Comment