mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-30 19:53:09 +00:00
(sh-font-lock-keywords): Don't crash for an unrecognized shell.
This commit is contained in:
parent
bbdf24fae2
commit
b946fbad39
@ -794,11 +794,12 @@ with your script for an edit-interpret-debug cycle."
|
||||
"Function to get simple fontification based on `sh-font-lock-keywords'.
|
||||
This adds rules for comments and assignments."
|
||||
(sh-feature sh-font-lock-keywords
|
||||
(lambda (list)
|
||||
`((,(sh-feature sh-assignment-regexp)
|
||||
1 font-lock-variable-name-face)
|
||||
,@keywords
|
||||
,@list))))
|
||||
(when (stringp (sh-feature sh-assignment-regexp))
|
||||
(lambda (list)
|
||||
`((,(sh-feature sh-assignment-regexp)
|
||||
1 font-lock-variable-name-face)
|
||||
,@keywords
|
||||
,@list)))))
|
||||
|
||||
(defun sh-font-lock-keywords-1 (&optional builtins)
|
||||
"Function to get better fontification including keywords."
|
||||
|
Loading…
Reference in New Issue
Block a user