equal
deleted
inserted
replaced
12 ;; |
12 ;; |
13 ;; Very pure syntax highlighting. |
13 ;; Very pure syntax highlighting. |
14 |
14 |
15 ;;; Code: |
15 ;;; Code: |
16 |
16 |
17 (when (eq window-system 'w32) |
17 (define-generic-mode 'nsis-mode |
18 (define-generic-mode 'nsis-generic-mode |
18 (list ?\;) |
19 (list ?\;) |
19 '("Section" "SectionEnd" "Function" "FunctionEnd" "Call" "Goto") |
20 '("Section" "SectionEnd" "Function" "FunctionEnd" "Call" "Goto") |
20 '(("!\\([A-Za-z]+\\)" (1 'font-lock-builtin-face)) |
21 '(("!\\([A-Za-z]+\\)" (1 'font-lock-builtin-face)) |
21 ("$[({]?\\([A-Za-z0-9_]+\\)[)}]?" (1 'font-lock-variable-name-face)) |
22 ("$[({]?\\([A-Za-z0-9_]+\\)[)}]?" (1 'font-lock-variable-name-face)) |
22 ) |
23 ) |
23 (list "\\.\\(nsi\\|nsh\\)$") |
24 (list "\\.\\(nsi\\|nsh\\)$") |
24 nil |
25 nil |
25 "Generic mode for nsis files.") |
26 "Generic mode for nsis files.")) |
|
27 |
26 |
28 (provide 'nsis-mode) |
27 (provide 'nsis-mode) |
29 |
28 |
30 ;;; nsis-mode.el ends here |
29 ;;; nsis-mode.el ends here |