annotate runtime/syntax/dune.vim @ 20180:6ac0d289f8e7

Added tag v8.2.0645 for changeset 28d82a34233197c7d2407a03400855e038caa96b
author Bram Moolenaar <Bram@vim.org>
date Sun, 26 Apr 2020 16:15:04 +0200
parents 432714f5c0f7
children 15fa3923cc49
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17261
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Language: Dune buildsystem
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Maintainer: Markus Mottl <markus.mottl@gmail.com>
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Anton Kochkov <anton.kochkov@gmail.com>
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " URL: https://github.com/rgrinberg/vim-ocaml
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 " Last Change:
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 " 2019 Feb 27 - Add newer keywords to the syntax (Simon Cruanes)
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 " 2018 May 8 - Check current_syntax (Kawahara Satoru)
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 " 2018 Mar 29 - Extend jbuild syntax with more keywords (Petter A. Urkedal)
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 " 2017 Sep 6 - Initial version (Etienne Millon)
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 if exists("b:current_syntax")
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 finish
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 endif
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 set syntax=lisp
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 syn case match
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 " The syn-iskeyword setting lacks #,? from the iskeyword setting here.
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 " Clearing it avoids maintaining keyword characters in multiple places.
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20 syn iskeyword clear
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 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
23
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24 syn keyword lispKey name public_name synopsis modules libraries wrapped
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 syn keyword lispKey preprocess preprocessor_deps optional c_names cxx_names
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26 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
27 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
28 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
29 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
30 syn keyword lispKey deps targets locks fallback
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
31 syn keyword lispKey inline_tests tests names
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
32
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
33 syn keyword lispAtom true false
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
34
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
35 syn keyword lispFunc cat chdir copy# diff? echo run setenv
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
36 syn keyword lispFunc ignore-stdout ignore-stderr ignore-outputs
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
37 syn keyword lispFunc with-stdout-to with-stderr-to with-outputs-to
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
38 syn keyword lispFunc write-file system bash
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
39
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
40 syn cluster lispBaseListCluster add=duneVar
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
41 syn match duneVar '\${[@<^]}' containedin=lispSymbol
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
42 syn match duneVar '\${\k\+\(:\k\+\)\?}' containedin=lispSymbol
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
43
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
44 hi def link duneVar Identifier
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
45
432714f5c0f7 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
46 let b:current_syntax = "dune"