summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/sh-script.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index db965c5a58c..35b555e6879 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -492,7 +492,10 @@ name symbol."
This is buffer-local in every such buffer.")
(defvar sh-mode-syntax-table-input
- '((sh . nil))
+ `((sh . nil)
+ ;; Treat ' as punctuation rather than a string delimiter, as RPM
+ ;; files often contain prose with apostrophes.
+ (rpm . (,sh-mode-syntax-table ?\' ".")))
"Syntax-table used in Shell-Script mode. See `sh-feature'.")
(defvar sh-mode-map