equal
deleted
inserted
replaced
|
1 ;;; iar-linker-config-mode.el --- major mode for highlighting IAR Embedded Workbench 4.x linker scripts |
|
2 |
1 ;; DO NOT EDIT COMMENT! TAG: iar4-linker-config-mode |
3 ;; DO NOT EDIT COMMENT! TAG: iar4-linker-config-mode |
|
4 |
|
5 ;; Copyright (C) 2009, 2010 by Oleksandr Gavenko <gavenkoa@gmail.com> |
|
6 |
|
7 ;; Author: Oleksandr Gavenko <gavenkoa@gmail.com> |
|
8 ;; Maintainer: Oleksandr Gavenko <gavenkoa@gmail.com> |
|
9 ;; Created: 2009-11-04 |
|
10 ;; Version: 0.1 |
|
11 ;; Keywords: languages |
|
12 |
|
13 ;;; Commentary: |
|
14 ;; |
|
15 ;; Very pure highlighting and not all available syntax. |
|
16 |
|
17 ;;; Code: |
|
18 |
2 (define-generic-mode iar4-linker-config-mode |
19 (define-generic-mode iar4-linker-config-mode |
3 '("// " ("/*" . "*/")) |
20 '("// " ("/*" . "*/")) |
4 nil |
21 nil |
5 '( |
22 '( |
6 ("^\\(-c\\)\\([_a-zA-Z]+\\)" |
23 ("^\\(-c\\)\\([_a-zA-Z]+\\)" |
27 (list "\\.\\(xcl\\)\\'") |
44 (list "\\.\\(xcl\\)\\'") |
28 (list |
45 (list |
29 (lambda () (setq comment-start "// " comment-end "")) |
46 (lambda () (setq comment-start "// " comment-end "")) |
30 ) |
47 ) |
31 "Generic mode for iar linker config files.") |
48 "Generic mode for iar linker config files.") |
|
49 ;;; iar4-linker-config-mode.el ends here |