--- 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