Skip to content

runtime(sh): Do not conflate empty array and function declarations in Bash#20205

Draft
zzzyxwvut wants to merge 1 commit into
vim:masterfrom
zzzyxwvut:runtime/sh/20260513
Draft

runtime(sh): Do not conflate empty array and function declarations in Bash#20205
zzzyxwvut wants to merge 1 commit into
vim:masterfrom
zzzyxwvut:runtime/sh/20260513

Conversation

@zzzyxwvut
Copy link
Copy Markdown
Contributor

Fixes #20183.

… Bash

Although the "=" character is permitted in function names,
a construct that parses as an array assignment is preferred
to it parsing as a function declaration.  See the updated
test file "sh_functions_bash.sh" for details.

Fixes vim#20183.


Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
@zzzyxwvut zzzyxwvut force-pushed the runtime/sh/20260513 branch from bfe6b2f to fe4ebfb Compare May 14, 2026 23:52
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.

runtime/syntax/sh.vim: Array highlighting

1 participant