--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lisp/nsis-mode.el Thu Jan 28 20:20:25 2010 +0200
@@ -0,0 +1,30 @@
+;;; iar-linker-config-mode.el --- major mode for highlighting NSIS scripts
+
+;; Copyright (C) 2009, 2010 by Oleksandr Gavenko <gavenkoa@gmail.com>
+
+;; Author: Oleksandr Gavenko <gavenkoa@gmail.com>
+;; Maintainer: Oleksandr Gavenko <gavenkoa@gmail.com>
+;; Created: 2009-09-14
+;; Version: 0.1
+;; Keywords: languages
+
+;;; Commentary:
+;;
+;; Very pure syntax highlighting.
+
+;;; Code:
+
+(when (eq window-system 'w32)
+ (define-generic-mode 'nsis-generic-mode
+ (list ?\;)
+ '("Section" "SectionEnd" "Function" "FunctionEnd" "Call" "Goto")
+ '(("!\\([A-Za-z]+\\)" (1 'font-lock-builtin-face))
+ ("$[({]?\\([A-Za-z0-9_]+\\)[)}]?" (1 'font-lock-variable-name-face))
+ )
+ (list "\\.\\(nsi\\|nsh\\)$")
+ nil
+ "Generic mode for nsis files."))
+
+(provide 'nsis-mode)
+
+;;; nsis-mode.el ends here