template-pre/nsis-mode.el
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 25 Jan 2010 23:37:52 +0200
changeset 258 29533873ee3e
parent 257 2f3ac763c340
child 265 ee6dca41d9aa
permissions -rw-r--r--
Fix docs headers according to 'Conventional Headers for Emacs Libraries'.

;;; iar-linker-config-mode.el --- major mode for highlighting NSIS scripts

;; DO NOT EDIT COMMENT! TAG: nsis-mode

;; 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