projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
299f194
)
* generic-x.el (ansible-inventory-generic-mode): Warn if value is missing
author
Ted Zlatanov
<tzz@lifelogs.com>
Wed, 15 Jun 2016 14:18:31 +0000
(10:18 -0400)
committer
Ted Zlatanov
<tzz@lifelogs.com>
Wed, 15 Jun 2016 14:18:50 +0000
(10:18 -0400)
lisp/generic-x.el
patch
|
blob
|
history
diff --git
a/lisp/generic-x.el
b/lisp/generic-x.el
index bd0d8318859ef35f15fd1f4007c2a4ee39d204db..1e3a6e183b426b6a45d75f45ced78991d96cfcf2 100644
(file)
--- 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)))