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:
parent
9b0662d369
commit
63d0a3c63f
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue