Improve CFEngine 3 parsing and eldoc support, with syntax fallbacks
commit978a5fdaa35e8945920ab194213715e6f1f0bc20
authorTed Zlatanov <tzz@lifelogs.com>
Fri, 13 Dec 2013 18:18:19 +0000 (13 13:18 -0500)
committerTed Zlatanov <tzz@lifelogs.com>
Fri, 13 Dec 2013 18:18:19 +0000 (13 13:18 -0500)
tree8ca7a4119d07eef4065ee535cbb192cf5a907514
parent71e6691e5c9347f53fc984ccba83065c5e9fabaf
Improve CFEngine 3 parsing and eldoc support, with syntax fallbacks

* progmodes/cfengine.el (cfengine-cf-promises): Add more default
locations for cf-promises.
(cfengine-mode-syntax-functions-regex): New caching variable.
(cfengine3-fallback-syntax): Fallback syntax for cases where
cf-promises doesn't run.
(cfengine3--current-word): Reimplement using
`cfengine-mode-syntax-functions-regex'.
(cfengine3-completion-function, cfengine3--current-function): Use
`cfengine3-make-syntax-cache' directly.
(cfengine3-clear-syntax-cache): New function.
(cfengine3-make-syntax-cache): Simplify and create
`cfengine-mode-syntax-functions-regex' on demand.
(cfengine3-format-function-docstring): Don't call
`cfengine3-make-syntax-cache' explicitly.
lisp/ChangeLog
lisp/progmodes/cfengine.el