[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#55889: 29.0.50; Support mksh-specific function names in imenu
From: |
Visuwesh |
Subject: |
bug#55889: 29.0.50; Support mksh-specific function names in imenu |
Date: |
Fri, 10 Jun 2022 20:06:21 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Tags: patch
mksh supports characters well beyond [:alnum:_] in its function names.
More specifically, syn.c:function_body says the following
/*-
* Check for valid characters in name. POSIX and AT&T ksh93 say
* only allow [a-zA-Z_0-9] but this allows more as old pdkshs
* have allowed more; the following were never allowed:
* NUL TAB NL SP " $ & ' ( ) ; < = > \ ` |
* C_QUOTE|C_SPC covers all but adds # * ? [ ]
*/
However, it seems like executing a function with a forward-slash (/)
character in it is impossible as well.
Attached patch adds a mksh-specific entry to sh-imenu-generic-expression
to do that.
0001-Support-mksh-specific-function-names-in-imenu.patch
Description: Text Data
- bug#55889: 29.0.50; Support mksh-specific function names in imenu,
Visuwesh <=