1
0
forked from aniani/vim
Doug Kearns 221c53202d
runtime(vim): Split Vim legacy and Vim9 script indent tests
The indent test file is not highlighted correctly as it's currently a
syntactically erroneous mix of legacy and Vim9 script.  This is causing
spurious indent test failures as the indent script relies on syntax ID
tests to determine the context of lines being processed.

Splitting the tests into legacy and Vim9 specific files allows for
correct syntax highlighting and indenting.

closes: #16431

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-01-13 07:54:33 +01:00
..
2022-04-08 17:45:08 +01:00
2004-06-13 20:20:40 +00:00
2017-03-05 17:04:09 +01:00
2022-04-08 17:45:08 +01:00
2022-01-29 22:20:48 +00:00
2005-03-28 20:58:01 +00:00
2022-07-25 15:42:07 +01:00
2022-03-19 15:18:53 +00:00
2021-07-28 20:10:16 +02:00
2023-10-16 09:53:37 +02:00
2022-04-08 17:45:08 +01:00
2005-04-15 21:13:42 +00:00
2022-09-27 17:30:34 +01:00
2022-03-30 10:51:39 +01:00
2021-10-04 21:32:54 +01:00
2021-10-04 21:32:54 +01:00
2022-06-09 20:45:54 +01:00
2021-10-04 21:32:54 +01:00
2022-04-08 17:45:08 +01:00
2022-04-08 17:45:08 +01:00
2022-04-08 17:45:08 +01:00
2017-03-05 17:04:09 +01:00
2021-10-23 12:08:41 +01:00
2022-06-17 15:42:40 +01:00
2008-06-24 21:56:24 +00:00
2023-05-14 18:50:25 +01:00
2022-04-08 17:45:08 +01:00
2017-03-16 17:41:02 +01:00
2021-10-04 21:32:54 +01:00
2023-10-16 09:53:37 +02:00
2019-01-17 16:07:22 +01:00
2021-10-04 21:32:54 +01:00
2022-07-25 15:42:07 +01:00
2022-04-08 17:45:08 +01:00
2022-04-27 15:25:03 +01:00
2021-10-04 21:32:54 +01:00
2022-01-29 22:20:48 +00:00
2022-08-30 20:26:34 +01:00
2017-06-13 18:12:01 +02:00
2022-04-08 17:45:08 +01:00
2022-09-27 17:30:34 +01:00
2022-03-19 15:18:53 +00:00
2021-10-16 15:23:36 +01:00
2017-06-13 18:12:01 +02:00
2007-05-05 17:54:07 +00:00
2022-04-08 17:45:08 +01:00
2017-06-13 18:12:01 +02:00
2019-11-17 15:55:14 +01:00
2017-03-16 17:41:02 +01:00
2022-07-29 21:36:21 +01:00
2022-09-10 13:13:14 +01:00
2007-05-05 17:54:07 +00:00
2023-10-16 09:53:37 +02:00
2023-10-16 09:53:37 +02:00
2021-10-04 21:32:54 +01:00
2015-01-07 16:57:10 +01:00
2021-09-09 21:55:11 +02:00
2022-03-19 15:18:53 +00:00
2022-08-08 15:42:38 +01:00
2023-04-22 22:40:14 +01:00
2023-05-14 18:50:25 +01:00
2022-04-08 17:45:08 +01:00
2021-10-04 21:32:54 +01:00
2021-11-07 20:27:04 +00:00
2022-08-26 18:01:12 +01:00
2022-04-08 17:45:08 +01:00
2022-08-26 18:01:12 +01:00
2022-12-31 15:30:45 +00:00
2023-08-23 21:20:00 +02:00
2022-04-08 17:45:08 +01:00
2022-11-23 23:46:31 +00:00
2022-04-08 17:45:08 +01:00
2021-10-04 21:32:54 +01:00
2022-05-21 13:08:16 +01:00
2022-04-27 15:25:03 +01:00
2022-04-08 17:45:08 +01:00
2021-04-07 21:07:20 +02:00
2005-06-24 23:01:23 +00:00
2022-01-29 22:20:48 +00:00
2023-02-27 15:49:53 +00:00
2018-11-04 14:45:49 +01:00
2023-10-16 09:53:37 +02:00
2021-10-04 21:32:54 +01:00
2020-10-26 21:12:46 +01:00
2022-04-08 17:45:08 +01:00
2010-07-26 22:21:27 +02:00
2021-10-04 21:32:54 +01:00
2022-04-08 17:45:08 +01:00
2008-06-24 20:39:31 +00:00
2021-10-16 15:23:36 +01:00
2020-05-26 21:20:45 +02:00
2021-10-04 21:32:54 +01:00
2021-10-16 15:23:36 +01:00
2021-10-23 12:08:41 +01:00
2022-04-27 15:25:03 +01:00
2022-04-27 15:25:03 +01:00
2022-04-27 15:25:03 +01:00
2014-08-22 19:21:47 +02:00
2022-12-31 15:30:45 +00:00
2022-04-27 15:25:03 +01:00
2022-04-27 15:25:03 +01:00
2021-12-24 13:18:38 +00:00
2005-06-13 22:28:56 +00:00
2004-06-13 20:20:40 +00:00
2022-04-27 15:25:03 +01:00
2022-12-06 18:20:10 +00:00
2015-06-09 19:44:55 +02:00

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 the vim-dev mailing list <vim-dev@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 the vim-dev
mailing list: <vim-dev@vim.org>.

If you are the maintainer of an indent file and make improvements, e-mail the
new version to the vim-dev mailing list: <vim-dev@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.