Mercurial > vim
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 |
rev | line source |
---|---|
23466 | 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 | 3 " Maintainer: Markus Mottl <markus.mottl@gmail.com> |
4 " URL: https://github.com/ocaml/vim-ocaml | |
5 " Last Change: | |
6 " 2020 Dec 31 - Added header (Markus Mottl) | |
7 | |
8 if exists("b:current_syntax") | |
9 finish | |
10 endif | |
11 | |
12 " need %{vars}% | |
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 | 51 |
52 syn keyword opamTodo FIXME NOTE NOTES TODO XXX contained | |
53 syn match opamComment "#.*$" contains=opamTodo,@Spell | |
54 syn match opamOperator ">\|<\|=\|<=\|>=" | |
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 | 61 |
62 hi link opamKeyword1 Keyword | |
63 | |
64 hi link opamString String | |
65 hi link opamExp Function | |
66 hi link opamSeq Statement | |
67 hi link opamOperator Operator | |
68 hi link opamComment Comment | |
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 | 71 |
72 let b:current_syntax = "opam" | |
73 | |
74 " vim: ts=2 sw=2 |