neovim/runtime/indent
zeertzjq a24dd0392b
vim-patch:9.0.1580: CI: indent test hangs on FreeBSD (#23768)
Problem:    CI: indent test hangs on FreeBSD.
Solution:   Set 'nomore' when running the indent tests. (Ozaki Kiichi,
            closes vim/vim#12446)

9f3afe7a70

Co-authored-by: ichizok <gclient.gaap@gmail.com>
2023-05-26 22:13:42 +08:00
..
testdir vim-patch:9.0.1580: CI: indent test hangs on FreeBSD (#23768) 2023-05-26 22:13:42 +08:00
aap.vim
ada.vim vim-patch:partial:cbaff5e06ec5 (#18042) 2022-04-08 19:53:41 +02:00
ant.vim
automake.vim
awk.vim vim-patch:partial:cbaff5e06ec5 (#18042) 2022-04-08 19:53:41 +02:00
bash.vim
basic.vim vim-patch:partial:f10911e5db16 (#17248) 2022-01-31 15:27:01 +01:00
bib.vim
bitbake.vim vim-patch:b529cfbd04c0 (#19501) 2022-07-26 11:26:23 +02:00
bst.vim vim-patch:47c532e2bc55 (#17780) 2022-03-20 10:48:10 +01:00
bzl.vim
c.vim
cdl.vim vim-patch:partial:cbaff5e06ec5 (#18042) 2022-04-08 19:53:41 +02:00
ch.vim
chaiscript.vim vim-patch:partial:cbaff5e06ec5 (#18042) 2022-04-08 19:53:41 +02:00
changelog.vim
chatito.vim vim-patch:9fbdbb814f4a (#20376) 2022-09-28 12:48:36 +02:00
clojure.vim vim-patch:46eea444d (#17920) 2022-03-30 12:12:12 +01:00
cmake.vim vim-patch:partial:cbaff5e06ec5 (#18042) 2022-04-08 19:53:41 +02:00
cobol.vim
config.vim
context.vim
cpp.vim
cs.vim vim-patch:partial:63f32603789d (#18916) 2022-06-10 08:40:32 +02:00
css.vim
cucumber.vim
cuda.vim
d.vim vim-patch:partial:cbaff5e06ec5 (#18042) 2022-04-08 19:53:41 +02:00
dictconf.vim vim-patch:partial:cbaff5e06ec5 (#18042) 2022-04-08 19:53:41 +02:00
dictdconf.vim vim-patch:partial:cbaff5e06ec5 (#18042) 2022-04-08 19:53:41 +02:00
docbk.vim
dosbatch.vim
dtd.vim vim-patch:d592deb33652 (#19002) 2022-06-17 20:38:21 +02:00
dtrace.vim
dts.vim vim-patch:b7398fe41c9e (#23627) 2023-05-15 09:38:32 +02:00
dune.vim
dylan.vim vim-patch:partial:cbaff5e06ec5 (#18042) 2022-04-08 19:53:41 +02:00
eiffel.vim
elm.vim
erlang.vim vim-patch:partial:f269eabc6c4f (#20470) 2022-10-05 10:56:53 +02:00
eruby.vim
eterm.vim
expect.vim vim-patch:b529cfbd04c0 (#19501) 2022-07-26 11:26:23 +02:00
falcon.vim vim-patch:partial:cbaff5e06ec5 (#18042) 2022-04-08 19:53:41 +02:00
fennel.vim vim-patch:ce001a337e28 (#18287) 2022-04-27 17:48:35 +02:00
fish.vim vim-patch:partial:938ae280c79b (#22356) 2023-02-21 23:50:29 +08:00
fortran.vim vim-patch:partial 2d8ed0203aed (#18675) 2022-05-23 23:49:38 +02:00
framescript.vim
freebasic.vim vim-patch:partial:f10911e5db16 (#17248) 2022-01-31 15:27:01 +01:00
gitconfig.vim
gitolite.vim vim-patch:partial:cbaff5e06ec5 (#18042) 2022-04-08 19:53:41 +02:00
go.vim
gyp.vim vim-patch:9fbdbb814f4a (#20376) 2022-09-28 12:48:36 +02:00
haml.vim vim-patch:47c532e2bc55 (#17780) 2022-03-20 10:48:10 +01:00
hamster.vim
hare.vim vim-patch:9fbdbb814f4a (#20376) 2022-09-28 12:48:36 +02:00
hog.vim
html.vim vim-patch:2ecbe53f452e (#19577) 2022-07-30 15:48:32 +02:00
htmldjango.vim
idlang.vim vim-patch:partial:cbaff5e06ec5 (#18042) 2022-04-08 19:53:41 +02:00
ishd.vim
j.vim
java.vim
javascript.vim vim-patch:2ecbe53f452e (#19577) 2022-07-30 15:48:32 +02:00
javascriptreact.vim
json.vim vim-patch:71b6d3397649 (#20144) 2022-09-10 14:54:13 +02:00
jsonc.vim
jsp.vim
julia.vim vim-patch:d592deb33652 (#19002) 2022-06-17 20:38:21 +02:00
krl.vim vim-patch:75ab590f8504 (#18170) 2022-04-19 15:14:17 +02:00
ld.vim
less.vim
lifelines.vim
liquid.vim vim-patch:47c532e2bc55 (#17780) 2022-03-20 10:48:10 +01:00
lisp.vim vim-patch:partial: 48c3f4e0bff7 (#19684) 2022-08-09 10:43:28 +02:00
livebook.vim vim-patch:71badf9547e8 (#23285) 2023-04-23 15:22:55 +02:00
logtalk.vim
lua.vim vim-patch:9712ff1288f9 (#20240) 2022-09-18 15:20:20 +02:00
luau.vim vim-patch:b7398fe41c9e (#23627) 2023-05-15 09:38:32 +02:00
mail.vim
make.vim vim-patch:partial:cbaff5e06ec5 (#18042) 2022-04-08 19:53:41 +02:00
Makefile
matlab.vim
meson.vim vim-patch:partial 113cb513f76d (#16260) 2021-11-08 00:10:44 +01:00
mf.vim
mma.vim vim-patch:partial:cbaff5e06ec5 (#18042) 2022-04-08 19:53:41 +02:00
mp.vim
nginx.vim vim-patch:partial:f1dcd14fc5d4 (#21602) 2023-01-01 15:00:39 +01:00
nsis.vim
objc.vim vim-patch:partial:cbaff5e06ec5 (#18042) 2022-04-08 19:53:41 +02:00
obse.vim vim-patch:partial:b59ae59a5870 (#21170) 2022-11-24 10:23:50 +00:00
ocaml.vim
occam.vim vim-patch:partial:cbaff5e06ec5 (#18042) 2022-04-08 19:53:41 +02:00
pascal.vim
perl.vim vim-patch:d592deb33652 (#19002) 2022-06-17 20:38:21 +02:00
php.vim
postscr.vim vim-patch:partial 2d8ed0203aed (#18675) 2022-05-23 23:49:38 +02:00
pov.vim vim-patch:ce001a337e28 (#18287) 2022-04-27 17:48:35 +02:00
prolog.vim vim-patch:partial:cbaff5e06ec5 (#18042) 2022-04-08 19:53:41 +02:00
ps1.vim
pyrex.vim
python.vim vim-patch:b529cfbd04c0 (#19501) 2022-07-26 11:26:23 +02:00
qb64.vim vim-patch:partial:f10911e5db16 (#17248) 2022-01-31 15:27:01 +01:00
quarto.vim vim-patch:partial:dd60c365cd26 (#22437) 2023-02-28 09:34:27 +01:00
query.lua chore: format runtime with stylua 2022-05-09 16:31:55 +02:00
r.vim vim-patch:71badf9547e8 (#23285) 2023-04-23 15:22:55 +02:00
racket.vim vim-patch:9b03d3e75b42 (#20013) 2022-08-31 08:08:51 +02:00
raku.vim
raml.vim
readline.vim
README.txt vim-patch:75ab590f8504 (#18170) 2022-04-19 15:14:17 +02:00
rhelp.vim vim-patch:71badf9547e8 (#23285) 2023-04-23 15:22:55 +02:00
rmd.vim vim-patch:partial:dd60c365cd26 (#22437) 2023-02-28 09:34:27 +01:00
rnoweb.vim vim-patch:71badf9547e8 (#23285) 2023-04-23 15:22:55 +02:00
rpl.vim
rrst.vim vim-patch:partial:dd60c365cd26 (#22437) 2023-02-28 09:34:27 +01:00
rst.vim
ruby.vim vim-patch:46eea444d (#17920) 2022-03-30 12:12:12 +01:00
rust.vim
sas.vim vim-patch:partial:cbaff5e06ec5 (#18042) 2022-04-08 19:53:41 +02:00
sass.vim vim-patch:47c532e2bc55 (#17780) 2022-03-20 10:48:10 +01:00
scala.vim
scheme.vim
scss.vim
sdl.vim
sh.vim vim-patch:partial fa3b72348d88 (#16780) 2021-12-26 11:03:25 +01:00
sml.vim vim-patch:partial:cbaff5e06ec5 (#18042) 2022-04-08 19:53:41 +02:00
solidity.vim vim-patch:9fbdbb814f4a (#20376) 2022-09-28 12:48:36 +02:00
sql.vim
sqlanywhere.vim
sshconfig.vim
systemverilog.vim vim-patch:partial: 48c3f4e0bff7 (#19684) 2022-08-09 10:43:28 +02:00
tcl.vim
tcsh.vim
teraterm.vim
tex.vim
tf.vim vim-patch:ce001a337e28 (#18287) 2022-04-27 17:48:35 +02:00
tilde.vim vim-patch:ce001a337e28 (#18287) 2022-04-27 17:48:35 +02:00
treetop.vim vim-patch:ce001a337e28 (#18287) 2022-04-27 17:48:35 +02:00
typescript.vim
vb.vim vim-patch:partial:f1dcd14fc5d4 (#21602) 2023-01-01 15:00:39 +01:00
verilog.vim
vhdl.vim
vim.vim vim-patch:partial 0daafaa7d99e (#20083) 2022-09-06 08:57:53 +02:00
vroom.vim
vue.vim vim-patch:partial:f1dcd14fc5d4 (#21602) 2023-01-01 15:00:39 +01:00
wast.vim
xf86conf.vim vim-patch:ce001a337e28 (#18287) 2022-04-27 17:48:35 +02:00
xhtml.vim
xinetd.vim vim-patch:ce001a337e28 (#18287) 2022-04-27 17:48:35 +02:00
xml.vim vim-patch:partial fa3b72348d88 (#16780) 2021-12-26 11:03:25 +01:00
xsd.vim
xslt.vim
yacc.vim vim-patch:ce001a337e28 (#18287) 2022-04-27 17:48:35 +02:00
yaml.vim vim-patch:partial 0daafaa7d99e (#20083) 2022-09-06 08:57:53 +02:00
zig.vim vim-patch:86b4816766d9 (#21314) 2022-12-08 16:33:38 +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
'indentkeys' 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.

To test the indent file, see testdir/README.txt.