aboutsummaryrefslogtreecommitdiff
path: root/runtime/indent
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-10-29 09:55:33 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-10-29 09:57:24 +0100
commit4f67f5ba6e5c9c1a8483e2b1f5faaa48bfb221ad (patch)
tree8f404308064a2ef07e8f3f7efd34b904fc57e027 /runtime/indent
parent07fdbba9d0a5cce9d466c36fbbaa9fe1cdeb1428 (diff)
downloadrneovim-4f67f5ba6e5c9c1a8483e2b1f5faaa48bfb221ad.tar.gz
rneovim-4f67f5ba6e5c9c1a8483e2b1f5faaa48bfb221ad.tar.bz2
rneovim-4f67f5ba6e5c9c1a8483e2b1f5faaa48bfb221ad.zip
vim-patch:d2855f5454c5
Update runtime files. https://github.com/vim/vim/commit/d2855f5454c5c6c5f786b228c5b67757edfefcb1
Diffstat (limited to 'runtime/indent')
-rw-r--r--runtime/indent/wast.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/indent/wast.vim b/runtime/indent/wast.vim
new file mode 100644
index 0000000000..1be234b6e9
--- /dev/null
+++ b/runtime/indent/wast.vim
@@ -0,0 +1,17 @@
+" Vim indent file
+" Language: WebAssembly
+" Maintainer: rhysd <lin90162@yahoo.co.jp>
+" Last Change: Jul 29, 2018
+" For bugs, patches and license go to https://github.com/rhysd/vim-wasm
+
+if exists("b:did_indent")
+ finish
+endif
+let b:did_indent = 1
+
+" WebAssembly text format is S-expression. We can reuse LISP indentation
+" logic.
+setlocal indentexpr=lispindent('.')
+setlocal noautoindent nosmartindent
+
+let b:undo_indent = "setl lisp< indentexpr<"