11442
|
1 " Vim syntax file
|
|
2 " Language: sbt
|
|
3 " Maintainer: Steven Dobay <stevendobay at protonmail.com>
|
|
4 " Last Change: 2017.04.30
|
|
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
|
|
19 syn match sbtSpecial "\(:=\|++=\|+=\|<<=\|<+=\)"
|
|
20
|
|
21 syn match sbtLineComment "//.*"
|
|
22 syn region sbtComment start="/\*" end="\*/"
|
|
23 syn region sbtDocComment start="/\*\*" end="\*/" keepend
|
|
24
|
|
25 hi link sbtString String
|
|
26 hi link sbtIdentitifer Keyword
|
|
27 hi link sbtBeginningSeq Keyword
|
|
28 hi link sbtSpecial Special
|
|
29 hi link sbtComment Comment
|
|
30 hi link sbtLineComment Comment
|
|
31 hi link sbtDocComment Comment
|
|
32
|