diff options
author | Ted Zlatanov <tzz@lifelogs.com> | 2016-06-15 10:18:31 -0400 |
---|---|---|
committer | Ted Zlatanov <tzz@lifelogs.com> | 2016-06-15 10:18:50 -0400 |
commit | 090060a72c7245796bffeb14daf9da1b49f339f0 (patch) | |
tree | 87c62ac63187061baf9b4fc2e0a375ccab76bd2d /lisp/generic-x.el | |
parent | 299f194aaff664fa60b5fd3d06d555f07755b3ba (diff) | |
download | emacs-090060a72c7245796bffeb14daf9da1b49f339f0.tar.gz emacs-090060a72c7245796bffeb14daf9da1b49f339f0.tar.bz2 emacs-090060a72c7245796bffeb14daf9da1b49f339f0.zip |
* generic-x.el (ansible-inventory-generic-mode): Warn if value is missing
Diffstat (limited to 'lisp/generic-x.el')
-rw-r--r-- | lisp/generic-x.el | 4 |
1 files changed, 4 insertions, 0 deletions
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))) |