annotate runtime/syntax/sbt.vim @ 25318:24bd79082d86 v8.2.3196

patch 8.2.3196: Vim9: bool expression with numbers only fails at runtime Commit: https://github.com/vim/vim/commit/05bd9785fd0fd0102ab64554307bff0ec0ae34c1 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 21 21:37:28 2021 +0200 patch 8.2.3196: Vim9: bool expression with numbers only fails at runtime Problem: Vim9: bool expression with numbers only fails at runtime. Solution: Check constant to be bool at compile time. (closes https://github.com/vim/vim/issues/8603)
author Bram Moolenaar <Bram@vim.org>
date Wed, 21 Jul 2021 21:45:04 +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