template-pre/nsis-mode.el
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 14 Oct 2009 17:20:45 +0300
changeset 183 6454364c25cf
parent 164 d7ed163b397e
child 257 2f3ac763c340
permissions -rw-r--r--
Suppress error (error "The directory ~/.emacs.d/server is unsafe") on windows.

;; DO NOT EDIT COMMENT! TAG: nsis-mode
(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."))