annotate runtime/syntax/dune.vim @ 35176:bbbd250e3d7a default tip

runtime(i3config/swayconfig): allow indented commands (#14757) Commit: https://github.com/vim/vim/commit/679f5abb9930fafda29ae038f47de357e9a0f53e Author: Josef Lito? <54900518+JosefLitos@users.noreply.github.com> Date: Mon May 13 22:03:42 2024 +0200 runtime(i3config/swayconfig): allow indented commands (https://github.com/vim/vim/issues/14757) fixes: https://github.com/vim/vim/issues/14752 Co-authored-by: jamespeapen <jamespeapen@users.noreply.github.com> Signed-off-by: Josef Lito? <54900518+JosefLitos@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Mon, 13 May 2024 22:15:04 +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: 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"