equal
deleted
inserted
replaced
1 ;;; iar-linker-config-mode.el --- major mode for highlighting NSIS scripts |
|
2 |
|
3 ;; DO NOT EDIT COMMENT! TAG: nsis-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-09-14 |
|
10 ;; Version: 0.1 |
|
11 ;; Keywords: languages |
|
12 |
|
13 ;;; Commentary: |
|
14 ;; |
|
15 ;; Very pure syntax highlighting. |
|
16 |
|
17 ;;; Code: |
|
18 |
|
19 (when (eq window-system 'w32) |
|
20 (define-generic-mode 'nsis-generic-mode |
|
21 (list ?\;) |
|
22 '("Section" "SectionEnd" "Function" "FunctionEnd" "Call" "Goto") |
|
23 '(("!\\([A-Za-z]+\\)" (1 'font-lock-builtin-face)) |
|
24 ("$[({]?\\([A-Za-z0-9_]+\\)[)}]?" (1 'font-lock-variable-name-face)) |
|
25 ) |
|
26 (list "\\.\\(nsi\\|nsh\\)$") |
|
27 nil |
|
28 "Generic mode for nsis files.")) |
|
29 |
|
30 (provide 'nsis-mode) |
|
31 |
|
32 ;;; nsis-mode.el ends here |
|