Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a syntax for jbuild files #16

Merged
merged 1 commit into from
Sep 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ftdetect/jbuild.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
au BufRead,BufNewFile jbuild set ft=jbuild
6 changes: 6 additions & 0 deletions ftplugin/jbuild.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin=1

set lisp
12 changes: 12 additions & 0 deletions syntax/jbuild.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
set syntax=lisp

syn keyword lispDecl jbuild_version library executable executables rule ocamllex ocamlyacc menhir alias install

syn keyword lispKey name public_name synopsis modules libraries wrapped
syn keyword lispKey preprocess preprocessor_deps optional c_names cxx_names
syn keyword lispKey install_c_headers modes no_dynlink self_build_stubs_archive
syn keyword lispKey ppx_runtime_libraries virtual_deps js_of_ocaml link_flags
syn keyword lispKey javascript_files flags ocamlc_flags ocamlopt_flags pps
syn keyword lispKey library_flags c_flags c_library_flags kind package action

syn keyword lispAtom true false