From: Ted Zlatanov Date: Wed, 15 Jun 2016 14:18:31 +0000 (-0400) Subject: * generic-x.el (ansible-inventory-generic-mode): Warn if value is missing X-Git-Tag: emacs-26.0.90~1840^2~226 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=090060a72c7245796bffeb14daf9da1b49f339f0;p=emacs.git * generic-x.el (ansible-inventory-generic-mode): Warn if value is missing --- diff --git a/lisp/generic-x.el b/lisp/generic-x.el index bd0d8318859..1e3a6e183b4 100644 --- a/lisp/generic-x.el +++ b/lisp/generic-x.el @@ -655,6 +655,10 @@ like an INI file. You can add this hook to `find-file-hook'." nil '(("^\\s-*\\(\\[.*\\]\\)" 1 font-lock-constant-face) ("^\\s-*\\([^ \n\r]*\\)" 1 font-lock-function-name-face) + ;; Variable assignments must be x=y, so highlight as warning if + ;; the value is missing. + ("\\s-\\([^ =\n\r]+\\)[\n\r ]" 1 font-lock-warning-face) + ;; Variable assignments: x=y ("\\([^ =\n\r]+\\)=\\([^ \n\r]*\\)" (1 font-lock-variable-name-face) (2 font-lock-keyword-face)))