]> git.eshelyaron.com Git - emacs.git/commit
cfengine.el: update for the upcoming CFEngine 3.7 release
authorTed Zlatanov <tzz@lifelogs.com>
Tue, 30 Jun 2015 03:07:30 +0000 (23:07 -0400)
committerTed Zlatanov <tzz@lifelogs.com>
Tue, 30 Jun 2015 03:07:30 +0000 (23:07 -0400)
commit1b3004cbf4de52261977d32a33b9a7e1ee630647
tree544be963e770f54b72962a994f187d4293f5b15e
parent7466a4ded6ded0bea50151395b7a0fccc5dfd167
cfengine.el: update for the upcoming CFEngine 3.7 release

Update for the upcoming CFEngine 3.7 release: support macros and
quoted context strings; reformat JSON; indent promise attributes 2
units by default; give function parameter descriptions in the eldoc
glue.
* cfengine.el: Update version and docs and fix name.  Autoload
`json-pretty-print'.  Support new features in 3.7.
(cfengine-parameters-indent): Set default promise attribute indent to
2 more than the promise itself.
(cfengine3-macro-regex): New variable to match the new macro syntax.
(cfengine3-font-lock-keywords): Use it to highlight macros.
(cfengine3-indent-line): Use it to indent macros to column 0.
(cfengine3-class-selector-regex): Update for the new quoted strings
format.
(cfengine3-reformat-json-string): New function to reformat a JSON
string using `json-pretty-print'.
(cfengine3-format-function-docstring): Use function parameter
description if it's provided by the cf-promises syntax dump.
lisp/progmodes/cfengine.el