From ce09c5bb8c74072837dcc51a64b846bd9051ff9e Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 7 Oct 2016 20:04:09 +0530 Subject: Add basic syntax and indentation files for ViM The syntax file does syntax highlighting for numbers, string literals, comments, etc. Also maintains a list of valid function names. The plugin does auto-indentation for Meson with two spaces by default. TODO: explicit errors for decimal numbers (right now, it's just unhighlighted), check kwargs, default options, etc. --- syntax-highlighting/vim/ftdetect/meson.vim | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 syntax-highlighting/vim/ftdetect/meson.vim (limited to 'syntax-highlighting/vim/ftdetect') diff --git a/syntax-highlighting/vim/ftdetect/meson.vim b/syntax-highlighting/vim/ftdetect/meson.vim new file mode 100644 index 0000000..84db70c --- /dev/null +++ b/syntax-highlighting/vim/ftdetect/meson.vim @@ -0,0 +1,2 @@ +au BufNewFile,BufRead meson.build set filetype=meson +au BufNewFile,BufRead meson_options.txt set filetype=meson -- cgit v1.1