|
From: | James Cherti |
Subject: | Re: Suggestion of enhancement by adding a hyphen to sh-imenu-generic-expression |
Date: | Sun, 24 Nov 2024 12:21:04 -0500 |
User-agent: | Mozilla Thunderbird |
Hello Eli, Attached is the patch you requested for sh-script.el.The patch enables the use of hyphens in Bash function names by adding a regular expression for Bash to `sh-imenu-generic-expression`.
-- James Cherti GitHub: https://github.com/jamescherti Website: https://www.jamescherti.com/ On 2024-11-24 04:41, Eli Zaretskii wrote:
Date: Sat, 23 Nov 2024 16:04:17 -0500 From: James Cherti <contact@jamescherti.com> Hello, While editing a Bash shell script today, I discovered that imenu does not include functions with hyphens in their names. While it is true that sh does not allow hyphens in function names, Bash does permit them. My suggestion is to add a hyphen '-' to the sh-imenu-generic-expression (sh-script.el) regular expression to make imenu include these functions,Would you like to submit a patch along these lines? Thanks.
bash-imenu-hyphen.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |