annotate runtime/syntax/opam.vim @ 35698:7270e1122962 v9.1.0586

patch 9.1.0586: ocaml runtime files are outdated Commit: https://github.com/vim/vim/commit/700cf8cfa1e926e2ba676203b3ad90c2c2083f1d Author: Yinzuo Jiang <jiangyinzuo@foxmail.com> Date: Sun Jul 14 17:02:33 2024 +0200 patch 9.1.0586: ocaml runtime files are outdated Problem: ocaml runtime files are outdated Solution: sync those files with the upstream repo, detect a few more ocaml files (Yinzuo Jiang) closes: #15260 Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Wed, 17 Jul 2024 08:13:44 +0200
parents 15fa3923cc49
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23466
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim syntax file
35698
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
2 " Language: opam - OCaml package manager
23466
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Markus Mottl <markus.mottl@gmail.com>
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " URL: https://github.com/ocaml/vim-ocaml
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 " Last Change:
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 " 2020 Dec 31 - Added header (Markus Mottl)
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 if exists("b:current_syntax")
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 finish
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 endif
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 " need %{vars}%
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 " env: [[CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"]]
35698
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
14 syn iskeyword a-z,A-Z,-
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
15 syn keyword opamKeyword1 author
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
16 syn keyword opamKeyword1 authors
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
17 syn keyword opamKeyword1 available
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
18 syn keyword opamKeyword1 bug-reports
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
19 syn keyword opamKeyword1 build
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
20 syn keyword opamKeyword1 build-env
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
21 syn keyword opamKeyword1 conflict-class
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
22 syn keyword opamKeyword1 conflicts
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
23 syn keyword opamKeyword1 depends
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
24 syn keyword opamKeyword1 depexts
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
25 syn keyword opamKeyword1 depopts
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
26 syn keyword opamKeyword1 description
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
27 syn keyword opamKeyword1 dev-repo
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
28 syn keyword opamKeyword1 doc
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
29 syn keyword opamKeyword1 extra-files
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
30 syn keyword opamKeyword1 features
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
31 syn keyword opamKeyword1 flags
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
32 syn keyword opamKeyword1 homepage
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
33 syn keyword opamKeyword1 install
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
34 syn keyword opamKeyword1 libraries
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
35 syn keyword opamKeyword1 license
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
36 syn keyword opamKeyword1 maintainer
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
37 syn keyword opamKeyword1 messages
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
38 syn keyword opamKeyword1 name
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
39 syn keyword opamKeyword1 opam-version
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
40 syn keyword opamKeyword1 patches
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
41 syn keyword opamKeyword1 pin-depends
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
42 syn keyword opamKeyword1 post-messages
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
43 syn keyword opamKeyword1 remove
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
44 syn keyword opamKeyword1 run-test
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
45 syn keyword opamKeyword1 setenv
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
46 syn keyword opamKeyword1 substs
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
47 syn keyword opamKeyword1 synopsis
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
48 syn keyword opamKeyword1 syntax
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
49 syn keyword opamKeyword1 tags
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
50 syn keyword opamKeyword1 version
23466
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
51
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
52 syn keyword opamTodo FIXME NOTE NOTES TODO XXX contained
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
53 syn match opamComment "#.*$" contains=opamTodo,@Spell
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
54 syn match opamOperator ">\|<\|=\|<=\|>="
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
55
35698
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
56 syn match opamUnclosedInterpolate "%{[^ "]*" contained
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
57 syn match opamInterpolate "%{[^ "]\+}%" contained
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
58 syn region opamString start=/"/ end=/"/ contains=opamInterpolate,OpamUnclosedInterpolate
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
59 syn region opamSeq start=/\[/ end=/\]/ contains=ALLBUT,opamKeyword1
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
60 syn region opamExp start=/{/ end=/}/ contains=ALLBUT,opamKeyword1
23466
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
61
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
62 hi link opamKeyword1 Keyword
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
63
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
64 hi link opamString String
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
65 hi link opamExp Function
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
66 hi link opamSeq Statement
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
67 hi link opamOperator Operator
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
68 hi link opamComment Comment
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
69 hi link opamInterpolate Identifier
35698
7270e1122962 patch 9.1.0586: ocaml runtime files are outdated
Christian Brabandt <cb@256bit.org>
parents: 23466
diff changeset
70 hi link opamUnclosedInterpolate Error
23466
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
71
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
72 let b:current_syntax = "opam"
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
73
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
74 " vim: ts=2 sw=2