comparison runtime/syntax/dune.vim @ 17261:432714f5c0f7

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