' is commonly used as an apostrophe in the prose sections of spec
files, which was erroneously highlighted as strings. See for example
http://kmymoney2.sourceforge.net/phb/rpm-example.html
* lisp/progmodes/sh-script.el (sh-mode-syntax-table): Treat ' as
punctuation in RPM spec files.
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