annotate runtime/syntax/dune.vim @ 25252:acda780ffc3e v8.2.3162

patch 8.2.3162: Vim9: argument types are not checked at compile time Commit: https://github.com/vim/vim/commit/1a71d31bf34b0b2b08517903826004ec6fd440e5 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Thu Jul 15 12:49:58 2021 +0200 patch 8.2.3162: Vim9: argument types are not checked at compile time Problem: Vim9: argument types are not checked at compile time. Solution: Add more type checks. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/8560)
author Bram Moolenaar <Bram@vim.org>
date Thu, 15 Jul 2021 13:00:06 +0200
parents 15fa3923cc49
children 7270e1122962
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23466
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 17261
diff changeset
1 " Vim syntax file
17261
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: Dune buildsystem
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Markus Mottl <markus.mottl@gmail.com>
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Anton Kochkov <anton.kochkov@gmail.com>
23466
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 17261
diff changeset
5 " URL: https://github.com/ocaml/vim-ocaml
17261
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 " Last Change:
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 " 2019 Feb 27 - Add newer keywords to the syntax (Simon Cruanes)
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 " 2018 May 8 - Check current_syntax (Kawahara Satoru)
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 " 2018 Mar 29 - Extend jbuild syntax with more keywords (Petter A. Urkedal)
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 " 2017 Sep 6 - Initial version (Etienne Millon)
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 if exists("b:current_syntax")
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 finish
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 endif
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 set syntax=lisp
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17 syn case match
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 " The syn-iskeyword setting lacks #,? from the iskeyword setting here.
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20 " Clearing it avoids maintaining keyword characters in multiple places.
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 syn iskeyword clear
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 syn keyword lispDecl jbuild_version library executable executables rule ocamllex ocamlyacc menhir alias install
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 syn keyword lispKey name public_name synopsis modules libraries wrapped
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26 syn keyword lispKey preprocess preprocessor_deps optional c_names cxx_names
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
27 syn keyword lispKey install_c_headers modes no_dynlink self_build_stubs_archive
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28 syn keyword lispKey ppx_runtime_libraries virtual_deps js_of_ocaml link_flags
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
29 syn keyword lispKey javascript_files flags ocamlc_flags ocamlopt_flags pps staged_pps
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
30 syn keyword lispKey library_flags c_flags c_library_flags kind package action
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
31 syn keyword lispKey deps targets locks fallback
23466
15fa3923cc49 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 17261
diff changeset
32 syn keyword lispKey inline_tests tests test names
17261
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
33
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
34 syn keyword lispAtom true false
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
35
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
36 syn keyword lispFunc cat chdir copy# diff? echo run setenv
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
37 syn keyword lispFunc ignore-stdout ignore-stderr ignore-outputs
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
38 syn keyword lispFunc with-stdout-to with-stderr-to with-outputs-to
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
39 syn keyword lispFunc write-file system bash
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
40
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
41 syn cluster lispBaseListCluster add=duneVar
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
42 syn match duneVar '\${[@<^]}' containedin=lispSymbol
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
43 syn match duneVar '\${\k\+\(:\k\+\)\?}' containedin=lispSymbol
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
44
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
45 hi def link duneVar Identifier
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
46
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
47 let b:current_syntax = "dune"