Skip to content

runtime(syntax-tests): Rename test files on demand - #20482

Closed
zzzyxwvut wants to merge 1 commit into
vim:masterfrom
zzzyxwvut:runtime/syntax/renaming/20260611
Closed

zzzyxwvut wants to merge 1 commit into
vim:masterfrom
zzzyxwvut:runtime/syntax/renaming/20260611

Conversation

@zzzyxwvut

Copy link
Copy Markdown
Contributor

The current scheme for naming syntax plugin tests expects
a filetype name prefix and an associated filename extension.
However, many configurational filetypes, e.g. Gitignore,
lack any established filename extension. Factor out the
available file-renaming routine and offer a convenience
function to work around this limitation.

For example, put in a VIM_TEST_SETUP aware context:

call DeferRenamingTestFileTo('.gitignore')

The current scheme for naming syntax plugin tests expects
a filetype name prefix and an associated filename extension.
However, many configurational filetypes, e.g. Gitignore,
lack any established filename extension.  Factor out the
available file-renaming routine and offer a convenience
function to work around this limitation.

For example, put in a VIM_TEST_SETUP aware context:
------------------------------------------------------------
call DeferRenamingTestFileTo('.gitignore')
------------------------------------------------------------

Signed-off-by: Aliaksei Budavei <[email protected]>
@chrisbra

Copy link
Copy Markdown
Member

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants