summaryrefslogtreecommitdiffstats
path: root/runtime/indent/wat.vim
blob: 08997f1a98f1ef2987292017d93a6bb85be7af39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
" Vim indent file
" Language:     WebAssembly
" Maintainer:   rhysd <lin90162@yahoo.co.jp>
" Last Change:  Nov 14, 2023
" 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<"