neovim/runtime/indent
Justin M. Keyes 4175dfac9a vim-patch:01164a6546b4
Long overdue runtime update.

01164a6546
2017-11-07 23:07:03 +01:00
..
aap.vim
ada.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
ant.vim
automake.vim vim-patch:214641f77df6 2017-11-06 05:26:16 +01:00
awk.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
bib.vim
bst.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
bzl.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
c.vim
cdl.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
ch.vim
chaiscript.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
changelog.vim
clojure.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
cmake.vim vim-patch:24a98a0eb772 2017-11-07 20:16:48 +01:00
cobol.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
config.vim vim-patch:214641f77df6 2017-11-06 05:26:16 +01:00
context.vim
cpp.vim
cs.vim
css.vim vim-patch:214641f77df6 2017-11-06 05:26:16 +01:00
cucumber.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
cuda.vim
d.vim
dictconf.vim vim-patch:214641f77df6 2017-11-06 05:26:16 +01:00
dictdconf.vim vim-patch:214641f77df6 2017-11-06 05:26:16 +01:00
docbk.vim vim-patch:214641f77df6 2017-11-06 05:26:16 +01:00
dtd.vim vim-patch:036986f1507d 2017-11-06 05:35:32 +01:00
dtrace.vim
dylan.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
eiffel.vim vim-patch:036986f1507d 2017-11-06 05:35:32 +01:00
erlang.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
eruby.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
eterm.vim vim-patch:036986f1507d 2017-11-06 05:35:32 +01:00
falcon.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
fortran.vim
framescript.vim vim-patch:036986f1507d 2017-11-06 05:35:32 +01:00
gitconfig.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
gitolite.vim vim-patch:01164a6546b4 2017-11-07 23:07:03 +01:00
go.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
haml.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
hamster.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
hog.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
html.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
htmldjango.vim
idlang.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
ishd.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
j.vim
java.vim vim-patch:036986f1507d 2017-11-06 05:35:32 +01:00
javascript.vim vim-patch:37c64c78fd87 2017-11-07 20:03:24 +01:00
json.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
jsp.vim
ld.vim vim-patch:036986f1507d 2017-11-06 05:35:32 +01:00
less.vim
lifelines.vim
liquid.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
lisp.vim
logtalk.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
lua.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
mail.vim
make.vim vim-patch:036986f1507d 2017-11-06 05:35:32 +01:00
matlab.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
mf.vim
mma.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
mp.vim
objc.vim
ocaml.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
occam.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
pascal.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
perl6.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
perl.vim vim-patch:37c64c78fd87 2017-11-07 20:03:24 +01:00
php.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
postscr.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
pov.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
prolog.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
pyrex.vim
python.vim
r.vim vim-patch:cd5c8f825078 2017-11-07 01:16:42 +01:00
readline.vim vim-patch:036986f1507d 2017-11-06 05:35:32 +01:00
README.txt
rhelp.vim vim-patch:cd5c8f825078 2017-11-07 01:16:42 +01:00
rmd.vim
rnoweb.vim
rpl.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
rrst.vim
rst.vim vim-patch:214641f77df6 2017-11-06 05:26:16 +01:00
ruby.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
rust.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
sas.vim vim-patch:036986f1507d 2017-11-06 05:35:32 +01:00
sass.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
scala.vim vim-patch:036986f1507d 2017-11-06 05:35:32 +01:00
scheme.vim
scss.vim
sdl.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
sh.vim vim-patch:1ccd8fff8acf 2017-11-07 03:16:34 +01:00
sml.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
sql.vim
sqlanywhere.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
systemd.vim
systemverilog.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
tcl.vim vim-patch:036986f1507d 2017-11-06 05:35:32 +01:00
tcsh.vim vim-patch:036986f1507d 2017-11-06 05:35:32 +01:00
teraterm.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
tex.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
tf.vim vim-patch:214641f77df6 2017-11-06 05:26:16 +01:00
tilde.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
treetop.vim vim-patch:036986f1507d 2017-11-06 05:35:32 +01:00
vb.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
verilog.vim vim-patch:c572da5f67aa 2017-11-07 03:23:37 +01:00
vhdl.vim vim-patch:01164a6546b4 2017-11-07 23:07:03 +01:00
vim.vim
vroom.vim
xf86conf.vim vim-patch:036986f1507d 2017-11-06 05:35:32 +01:00
xhtml.vim
xinetd.vim vim-patch:036986f1507d 2017-11-06 05:35:32 +01:00
xml.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
xsd.vim
xslt.vim
yacc.vim vim-patch:214641f77df6 2017-11-06 05:26:16 +01:00
yaml.vim vim-patch:3ec574f2b549 2017-11-07 01:37:30 +01:00
zimbu.vim
zsh.vim

This directory contains files to automatically compute the indent for a
type of file.

If you want to add your own indent file for your personal use, read the docs
at ":help indent-expression".  Looking at the existing files should give you
inspiration.

If you make a new indent file which would be useful for others, please send it
to Bram@vim.org.  Include instructions for detecting the file type for this
language, by file name extension or by checking a few lines in the file.
And please stick to the rules below.

If you have remarks about an existing file, send them to the maintainer of
that file.  Only when you get no response send a message to Bram@vim.org.

If you are the maintainer of an indent file and make improvements, e-mail the
new version to Bram@vim.org.


Rules for making an indent file:

You should use this check for "b:did_indent":

	" Only load this indent file when no other was loaded yet.
	if exists("b:did_indent")
	  finish
	endif
	let b:did_indent = 1

Always use ":setlocal" to set 'indentexpr'.  This avoids it being carried over
to other buffers.

To trigger the indenting after typing a word like "endif", add the word to the
'cinkeys' option with "+=".

You normally set 'indentexpr' to evaluate a function and then define that
function.  That function only needs to be defined once for as long as Vim is
running.  Add a test if the function exists and use ":finish", like this:
	if exists("*GetMyIndent")
	  finish
	endif

The user may have several options set unlike you, try to write the file such
that it works with any option settings.  Also be aware of certain features not
being compiled in.