* generic-x.el (ansible-inventory-generic-mode): Warn if value is missing

This commit is contained in:
Ted Zlatanov 2016-06-15 10:18:31 -04:00
parent 299f194aaf
commit 090060a72c
No known key found for this signature in database
GPG key ID: 11F23D0A4E4B9DEE

View file

@ -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)))