From 3ba328a52ea1b0a89b9d82e4500f4c572b296d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Mon, 13 Sep 2010 12:05:45 +0200 Subject: [PATCH] Emacs mode: highlight leads/lags and stoch_simul --- dynare.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dynare.el b/dynare.el index bf8f3eac7..bfb03107f 100644 --- a/dynare.el +++ b/dynare.el @@ -33,7 +33,8 @@ ;;; Changelog ;; 2010-09-07 by Yannick Kalantzis -;; Minor changes. Add `require'. Add builtin operators `;' and `='. +;; Minor changes. Add `require'. Add builtin operators `;' and `='. +;; Highlight lags and leads. ;; 2010-09-06 by Yannick Kalantzis ;; Created. ;; Reproduces Xah Lee's instructions. @@ -62,7 +63,7 @@ For detail, see `comment-dwim'." "dynare keywords.") (defvar dynare-functions - '("simul" "steady" "check" "rplot" "dynatype") + '("simul" "stoch_simul" "steady" "check" "rplot" "dynatype" "dynasave") "dynare functions.") ;; create the regex string for each class of keywords @@ -80,6 +81,7 @@ For detail, see `comment-dwim'." (,dynare-functions-regexp . font-lock-function-name-face) (,dynare-keywords-regexp . font-lock-keyword-face) (";\\|=" . font-lock-builtin-face) + ("(\\(\\+\\|-\\)[1-9])" . font-lock-constant-face) )) ;; define the major mode