template-pre/iar-linker-config-mode.el
changeset 194 a00fe2a384f9
parent 193 56bfc334d076
child 195 e905c8c27321
equal deleted inserted replaced
193:56bfc334d076 194:a00fe2a384f9
     1 ;; DO NOT EDIT COMMENT! TAG: iar-linker-config-mode
     1 ;; DO NOT EDIT COMMENT! TAG: iar-linker-config-mode
     2 (define-generic-mode iar-linker-config-mode
     2 (define-generic-mode iar-linker-config-mode
     3   '("// " ("/*" . "*/"))
     3   '("// " ("/*" . "*/"))
     4   nil
     4   '("section" "zeroinit" "code" "readwrite" "rw" "readonly" "ro")
     5   ;; '("define" "symbol" "region" "block" "memory" "place" "in" "at" "do" "not" "initialize" "with" "size" "from" "to")
     5   ;; '("define" "symbol" "region" "block" "memory" "place" "in" "at" "do" "not" "initialize" "with" "size" "from" "to")
     6   '(
     6   '(
     7     ("\\(define +symbol\\) +\\([_a-zA-Z]+\\) *= *\\(0x[0-9a-fA-F]+\\);"
     7     ("\\(define +symbol\\) +\\([_a-zA-Z]+\\) *= *\\(0x[0-9a-fA-F]+\\);"
     8      (1 font-lock-keyword-face)
     8      (1 font-lock-keyword-face)
     9      (2 font-lock-variable-name-face)
     9      (2 font-lock-variable-name-face)
    11     ("\\(define +memory\\) +\\([_a-zA-Z]+\\) +\\(with +size\\) = \\(0x[0-9a-fA-F]+\\|[0-9]+\\)[GMK]?;"
    11     ("\\(define +memory\\) +\\([_a-zA-Z]+\\) +\\(with +size\\) = \\(0x[0-9a-fA-F]+\\|[0-9]+\\)[GMK]?;"
    12      (1 font-lock-keyword-face)
    12      (1 font-lock-keyword-face)
    13      (2 font-lock-variable-name-face)
    13      (2 font-lock-variable-name-face)
    14      (3 font-lock-keyword-face)
    14      (3 font-lock-keyword-face)
    15      (4 font-lock-constant-face) )
    15      (4 font-lock-constant-face) )
    16     ("\\(define +region\\) +\\([_a-zA-Z]+\\) *= *\\([_a-zA-Z]+\\):\\[\\(from\\) +\\([_a-zA-Z]+\\) +\\(to\\) +\\([_a-zA-Z]+\\)\\];"
    16     ("\\(define +region\\) +\\([_a-zA-Z]+\\) *= *\\([_a-zA-Z]+\\):\\[\\(from\\) +\\([_a-zA-Z]+\\) +\\(to\\|size\\) +\\([_a-zA-Z]+\\)\\];"
    17      (1 font-lock-keyword-face)
    17      (1 font-lock-keyword-face)
    18      (2 font-lock-variable-name-face)
    18      (2 font-lock-variable-name-face)
    19      (3 font-lock-variable-name-face)
    19      (3 font-lock-variable-name-face)
    20      (4 font-lock-keyword-face)
    20      (4 font-lock-keyword-face)
    21      (5 font-lock-variable-name-face)
    21      (5 font-lock-variable-name-face)
    34      (2 font-lock-variable-name-face) )
    34      (2 font-lock-variable-name-face) )
    35     ("\\(place +at +address\\) +\\([_a-zA-Z]+\\):\\([_a-zA-Z]+\\) *{"
    35     ("\\(place +at +address\\) +\\([_a-zA-Z]+\\):\\([_a-zA-Z]+\\) *{"
    36      (1 font-lock-keyword-face)
    36      (1 font-lock-keyword-face)
    37      (2 font-lock-variable-name-face)
    37      (2 font-lock-variable-name-face)
    38      (3 font-lock-variable-name-face) )
    38      (3 font-lock-variable-name-face) )
       
    39     ("\\(initialize by copy\\) *{"
       
    40      (1 font-lock-keyword-face) )
    39     )
    41     )
    40   (list "\\.\\(icf\\)\\'")
    42   (list "\\.\\(icf\\)\\'")
    41   (list
    43   (list
    42    (lambda () (setq comment-start "/* " comment-end " */"))
    44    (lambda () (setq comment-start "/* " comment-end " */"))
    43    )
    45    )