codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: Dune buildsystem3" Maintainer: Markus Mottl <markus.mottl@gmail.com>4" Anton Kochkov <anton.kochkov@gmail.com>5" URL: https://github.com/ocaml/vim-ocaml6" Last Change:7" 2023 Nov 24 - Add end-of-line strings (Samuel Hym)8" 2019 Feb 27 - Add newer keywords to the syntax (Simon Cruanes)9" 2018 May 8 - Check current_syntax (Kawahara Satoru)10" 2018 Mar 29 - Extend jbuild syntax with more keywords (Petter A. Urkedal)11" 2017 Sep 6 - Initial version (Etienne Millon)12 13if exists("b:current_syntax")14 finish15endif16 17set syntax=lisp18syn case match19 20" The syn-iskeyword setting lacks #,? from the iskeyword setting here.21" Clearing it avoids maintaining keyword characters in multiple places.22syn iskeyword clear23 24syn keyword lispDecl jbuild_version library executable executables rule ocamllex ocamlyacc menhir alias install25 26syn keyword lispKey name public_name synopsis modules libraries wrapped27syn keyword lispKey preprocess preprocessor_deps optional c_names cxx_names28syn keyword lispKey install_c_headers modes no_dynlink self_build_stubs_archive29syn keyword lispKey ppx_runtime_libraries virtual_deps js_of_ocaml link_flags30syn keyword lispKey javascript_files flags ocamlc_flags ocamlopt_flags pps staged_pps31syn keyword lispKey library_flags c_flags c_library_flags kind package action32syn keyword lispKey deps targets locks fallback33syn keyword lispKey inline_tests tests test names34 35syn keyword lispAtom true false36 37syn keyword lispFunc cat chdir copy# diff? echo run setenv38syn keyword lispFunc ignore-stdout ignore-stderr ignore-outputs39syn keyword lispFunc with-stdout-to with-stderr-to with-outputs-to40syn keyword lispFunc write-file system bash41 42syn region lispString start=+"\\[>|]+ end=+$+ contains=@Spell43 44syn cluster lispBaseListCluster add=duneVar45syn match duneVar '\${[@<^]}' containedin=lispSymbol46syn match duneVar '\${\k\+\(:\k\+\)\?}' containedin=lispSymbol47 48hi def link duneVar Identifier49 50let b:current_syntax = "dune"51 