annotate runtime/syntax/sbt.vim @ 21528:e0aa9b81f6a9 v8.2.1314

patch 8.2.1314: Vim9: rule for comment after :function is confusing Commit: https://github.com/vim/vim/commit/9898107f54a330c6d9629976250a393169c698ca Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 29 14:40:25 2020 +0200 patch 8.2.1314: Vim9: rule for comment after :function is confusing Problem: Vim9: rule for comment after :function is confusing. Solution: Allow double quoted comment after :function in vim9script. (closes #6556)
author Bram Moolenaar <Bram@vim.org>
date Wed, 29 Jul 2020 14:45:05 +0200
parents d183d629509e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11442
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 " Vim syntax file
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2 " Language: sbt
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
3 " Maintainer: Steven Dobay <stevendobay at protonmail.com>
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4 " Last Change: 2017.04.30
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6 if exists("b:current_syntax")
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
7 finish
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
8 endif
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
10 runtime! syntax/scala.vim
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
11
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
12 syn region sbtString start="\"[^"]" skip="\\\"" end="\"" contains=sbtStringEscape
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
13 syn match sbtStringEscape "\\u[0-9a-fA-F]\{4}" contained
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
14 syn match sbtStringEscape "\\[nrfvb\\\"]" contained
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
15
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
16 syn match sbtIdentitifer "^\S\+\ze\s*\(:=\|++=\|+=\|<<=\|<+=\)"
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
17 syn match sbtBeginningSeq "^[Ss]eq\>"
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
18
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
19 syn match sbtSpecial "\(:=\|++=\|+=\|<<=\|<+=\)"
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
20
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
21 syn match sbtLineComment "//.*"
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
22 syn region sbtComment start="/\*" end="\*/"
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
23 syn region sbtDocComment start="/\*\*" end="\*/" keepend
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
24
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
25 hi link sbtString String
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
26 hi link sbtIdentitifer Keyword
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
27 hi link sbtBeginningSeq Keyword
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
28 hi link sbtSpecial Special
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
29 hi link sbtComment Comment
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
30 hi link sbtLineComment Comment
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
31 hi link sbtDocComment Comment
d183d629509e Update runtime files.
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
32