view runtime/syntax/sbt.vim @ 23919:9bd721a95893 v8.2.2502

patch 8.2.2502: a few github actions are failing Commit: https://github.com/vim/vim/commit/ca753ec862f8191f1fc5ed161753704a488ed08d Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 12 19:48:51 2021 +0100 patch 8.2.2502: a few github actions are failing Problem: A few github actions are failing. Solution: Install setuptools-rust. (closes https://github.com/vim/vim/issues/7823)
author Bram Moolenaar <Bram@vim.org>
date Fri, 12 Feb 2021 20:00:04 +0100
parents d183d629509e
children
line wrap: on
line source

" Vim syntax file
" Language:    sbt
" Maintainer:  Steven Dobay <stevendobay at protonmail.com>
" Last Change: 2017.04.30

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\>"

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
hi link sbtDocComment Comment