[vim/vim] runtime(sh): Do not conflate comments and function declarations in Bash (PR #20878)

Aliaksei Budavei (Vim Github Repository) <[email protected]> Wed, 29 Jul 2026 15:03:42 -0700
Newsgroups gmane.editors.vim.devel
Message-ID <vim/vim/pull/[email protected]>
Bash identifiers declared in scripts cannot have a leading  
`#` in their names.  And neither `namespace` nor `function`  
can be followed by a newline before an identifier.
You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20878

-- Commit Summary --

  * runtime(sh): Do not conflate comments and function declarations in Bash

-- File Changes --

    M runtime/syntax/sh.vim (17)
    M runtime/syntax/testdir/dumps/sh_functions_bash_01.dump (2)
    M runtime/syntax/testdir/dumps/sh_functions_bash_02.dump (2)
    M runtime/syntax/testdir/dumps/sh_functions_bash_03.dump (2)
    M runtime/syntax/testdir/dumps/sh_functions_bash_04.dump (2)
    M runtime/syntax/testdir/dumps/sh_functions_bash_05.dump (34)
    A runtime/syntax/testdir/dumps/sh_functions_bash_06.dump (20)
    M runtime/syntax/testdir/input/sh_functions_bash.sh (22)

-- Patch Links --

https://github.com/vim/vim/pull/20878.patch
https://github.com/vim/vim/pull/20878.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/pull/20878
You are receiving this because you are subscribed to this thread.

Message ID: <vim/vim/pull/[email protected]>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/pull/20878%40github.com.