diff -r b6c514e81d2c -r 9250e3ad5f4a lisp/nsis-mode.el --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lisp/nsis-mode.el Thu Jan 28 22:27:45 2010 +0200 @@ -0,0 +1,32 @@ +;;; iar-linker-config-mode.el --- major mode for highlighting NSIS scripts + +;; Copyright (C) 2009, 2010 by Oleksandr Gavenko + +;; You can do anything with this file without any warranty. + +;; Author: Oleksandr Gavenko +;; Maintainer: Oleksandr Gavenko +;; Created: 2009-09-14 +;; Version: 0.1 +;; Keywords: languages + +;;; Commentary: +;; +;; Very pure syntax highlighting. + +;;; Code: + +;;;###autoload +(define-generic-mode 'nsis-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