Commit 63d0a3c6 authored by Wilfred Hughes's avatar Wilfred Hughes

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.
parent 9b0662d3
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment