Don't treat ' as a string delimiter in RPM spec files

' 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 commit is contained in:
Wilfred Hughes 2017-05-23 18:48:19 +01:00
parent 9b0662d369
commit 63d0a3c63f

View file

@ -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