mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-27 07:37:33 +00: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
@ -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…
Reference in New Issue
Block a user