aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilfred Hughes2017-05-23 18:48:19 +0100
committerWilfred Hughes2017-05-23 18:48:19 +0100
commit63d0a3c63f833faad7a04fb4bf384d55ae6ae8d1 (patch)
treea94027c60a8f94e32ed869c1225e306b9edb326b
parent9b0662d3698692f99384cfc8d1bd0b41b0625e09 (diff)
downloademacs-63d0a3c63f833faad7a04fb4bf384d55ae6ae8d1.tar.gz
emacs-63d0a3c63f833faad7a04fb4bf384d55ae6ae8d1.zip
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.
-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."
492This is buffer-local in every such buffer.") 492This is buffer-local in every such buffer.")
493 493
494(defvar sh-mode-syntax-table-input 494(defvar sh-mode-syntax-table-input
495 '((sh . nil)) 495 `((sh . nil)
496 ;; Treat ' as punctuation rather than a string delimiter, as RPM
497 ;; files often contain prose with apostrophes.
498 (rpm . (,sh-mode-syntax-table ?\' ".")))
496 "Syntax-table used in Shell-Script mode. See `sh-feature'.") 499 "Syntax-table used in Shell-Script mode. See `sh-feature'.")
497 500
498(defvar sh-mode-map 501(defvar sh-mode-map