equal
deleted
inserted
replaced
|
1 ;;; iar-linker-config-mode.el --- major mode for highlighting NSIS scripts |
|
2 |
|
3 ;; Copyright (C) 2009, 2010 by Oleksandr Gavenko <gavenkoa@gmail.com> |
|
4 |
|
5 ;; Author: Oleksandr Gavenko <gavenkoa@gmail.com> |
|
6 ;; Maintainer: Oleksandr Gavenko <gavenkoa@gmail.com> |
|
7 ;; Created: 2009-09-14 |
|
8 ;; Version: 0.1 |
|
9 ;; Keywords: languages |
|
10 |
|
11 ;;; Commentary: |
|
12 ;; |
|
13 ;; Very pure syntax highlighting. |
|
14 |
|
15 ;;; Code: |
|
16 |
|
17 (when (eq window-system 'w32) |
|
18 (define-generic-mode 'nsis-generic-mode |
|
19 (list ?\;) |
|
20 '("Section" "SectionEnd" "Function" "FunctionEnd" "Call" "Goto") |
|
21 '(("!\\([A-Za-z]+\\)" (1 'font-lock-builtin-face)) |
|
22 ("$[({]?\\([A-Za-z0-9_]+\\)[)}]?" (1 'font-lock-variable-name-face)) |
|
23 ) |
|
24 (list "\\.\\(nsi\\|nsh\\)$") |
|
25 nil |
|
26 "Generic mode for nsis files.")) |
|
27 |
|
28 (provide 'nsis-mode) |
|
29 |
|
30 ;;; nsis-mode.el ends here |