mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-05 15:11:30 -08:00
Allow underscore in defun-prompt-regex names for sh-script
* lisp/progmodes/sh-script.el (defun-prompt-regexp): Allow underscore in function names.
This commit is contained in:
parent
bdbb390ffe
commit
fa3af359df
1 changed files with 2 additions and 2 deletions
|
|
@ -1625,9 +1625,9 @@ with your script for an edit-interpret-debug cycle."
|
|||
(setq-local defun-prompt-regexp
|
||||
(concat
|
||||
"^\\("
|
||||
"\\(function[ \t]\\)?[ \t]*[[:alnum:]]+[ \t]*([ \t]*)"
|
||||
"\\(function[ \t]\\)?[ \t]*[[:alnum:]_]+[ \t]*([ \t]*)"
|
||||
"\\|"
|
||||
"function[ \t]+[[:alnum:]]+[ \t]*\\(([ \t]*)\\)?"
|
||||
"function[ \t]+[[:alnum:]_]+[ \t]*\\(([ \t]*)\\)?"
|
||||
"\\)[ \t]*"))
|
||||
(setq-local add-log-current-defun-function #'sh-current-defun-name)
|
||||
(add-hook 'completion-at-point-functions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue