# HG changeset patch # User Oleksandr Gavenko # Date 1257702535 -7200 # Node ID a00fe2a384f91adbc19c79e2d27c4158484da768 # Parent 56bfc334d076fc32b33921116ebe6074188a6738 adds new match for highlighting in iar-linker-config-mode. diff -r 56bfc334d076 -r a00fe2a384f9 template-pre/iar-linker-config-mode.el --- a/template-pre/iar-linker-config-mode.el Sun Nov 08 19:39:56 2009 +0200 +++ b/template-pre/iar-linker-config-mode.el Sun Nov 08 19:48:55 2009 +0200 @@ -1,7 +1,7 @@ ;; DO NOT EDIT COMMENT! TAG: iar-linker-config-mode (define-generic-mode iar-linker-config-mode '("// " ("/*" . "*/")) - nil + '("section" "zeroinit" "code" "readwrite" "rw" "readonly" "ro") ;; '("define" "symbol" "region" "block" "memory" "place" "in" "at" "do" "not" "initialize" "with" "size" "from" "to") '( ("\\(define +symbol\\) +\\([_a-zA-Z]+\\) *= *\\(0x[0-9a-fA-F]+\\);" @@ -13,7 +13,7 @@ (2 font-lock-variable-name-face) (3 font-lock-keyword-face) (4 font-lock-constant-face) ) - ("\\(define +region\\) +\\([_a-zA-Z]+\\) *= *\\([_a-zA-Z]+\\):\\[\\(from\\) +\\([_a-zA-Z]+\\) +\\(to\\) +\\([_a-zA-Z]+\\)\\];" + ("\\(define +region\\) +\\([_a-zA-Z]+\\) *= *\\([_a-zA-Z]+\\):\\[\\(from\\) +\\([_a-zA-Z]+\\) +\\(to\\|size\\) +\\([_a-zA-Z]+\\)\\];" (1 font-lock-keyword-face) (2 font-lock-variable-name-face) (3 font-lock-variable-name-face) @@ -36,6 +36,8 @@ (1 font-lock-keyword-face) (2 font-lock-variable-name-face) (3 font-lock-variable-name-face) ) + ("\\(initialize by copy\\) *{" + (1 font-lock-keyword-face) ) ) (list "\\.\\(icf\\)\\'") (list