view runtime/syntax/sbt.vim @ 21919:ebc6d07840fd v8.2.1509

patch 8.2.1509: vertical separator is cleared when dragging a popup window Commit: https://github.com/vim/vim/commit/9943b3d97955ece99c747c959e0a7d493bb762bb Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 22 17:21:14 2020 +0200 patch 8.2.1509: vertical separator is cleared when dragging a popup window Problem: Vertical separator is cleared when dragging a popup window using a multi-byte character for the border. Solution: Only clear the character before the window if it is using a multi-byte character. (closes #6766)
author Bram Moolenaar <Bram@vim.org>
date Sat, 22 Aug 2020 17:30:03 +0200
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