Browse files

Some quick updates to the syntax just to make it look a bit prettier

  • Loading branch information...
1 parent 9493ca9 commit 29a6eb118fe857c6d8d6e10c8579a6bfc0e6ef0b Derek Wyatt committed Apr 26, 2012
Showing with 7 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +6 −2 syntax/sbt.vim
@@ -0,0 +1 @@
@@ -7,20 +7,24 @@ if exists("b:current_syntax")
+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 sbtIdentitifer "^\S\+\ze\s*\(:=\|++=\|+=\|<<=\|<+=\)"
+syn match sbtBeginningSeq "^[Ss]eq\>"
-syn match sbtSpecial ":="
+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
hi link sbtSpecial Special
hi link sbtComment Comment
hi link sbtLineComment Comment

0 comments on commit 29a6eb1

Please sign in to comment.