annotate runtime/syntax/dune.vim @ 31766:9f1504e36ae9 v9.0.1215

patch 9.0.1215: using isalpha() adds dependency on current locale Commit: https://github.com/vim/vim/commit/0ef9a5c09482649cf0cc6768ed6fc640b4ed2a0a Author: zeertzjq <zeertzjq@outlook.com> Date: Tue Jan 17 21:38:25 2023 +0000 patch 9.0.1215: using isalpha() adds dependency on current locale Problem: Using isalpha() adds dependency on current locale. Solution: Do not use isalpha() for recognizing a URL or the end of an Ex command. (closes #11835)
author Bram Moolenaar <Bram@vim.org>
date Tue, 17 Jan 2023 22:45:02 +0100
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"