lisp/nsis-mode.el
changeset 280 9250e3ad5f4a
parent 279 fd6164dfec82
child 281 457b9057a35a
equal deleted inserted replaced
259:b6c514e81d2c 280:9250e3ad5f4a
       
     1 ;;; iar-linker-config-mode.el --- major mode for highlighting NSIS scripts
       
     2 
       
     3 ;; Copyright (C) 2009, 2010 by Oleksandr Gavenko <gavenkoa@gmail.com>
       
     4 
       
     5 ;; You can do anything with this file without any warranty.
       
     6 
       
     7 ;; Author: Oleksandr Gavenko <gavenkoa@gmail.com>
       
     8 ;; Maintainer: Oleksandr Gavenko <gavenkoa@gmail.com>
       
     9 ;; Created: 2009-09-14
       
    10 ;; Version: 0.1
       
    11 ;; Keywords: languages
       
    12 
       
    13 ;;; Commentary:
       
    14 ;;
       
    15 ;; Very pure syntax highlighting.
       
    16 
       
    17 ;;; Code:
       
    18 
       
    19 ;;;###autoload
       
    20 (define-generic-mode 'nsis-mode
       
    21   (list ?\;)
       
    22   '("Section" "SectionEnd" "Function" "FunctionEnd" "Call" "Goto")
       
    23   '(("!\\([A-Za-z]+\\)" (1 'font-lock-builtin-face))
       
    24     ("$[({]?\\([A-Za-z0-9_]+\\)[)}]?" (1 'font-lock-variable-name-face))
       
    25     )
       
    26   (list "\\.\\(nsi\\|nsh\\)$")
       
    27   nil
       
    28   "Generic mode for nsis files.")
       
    29 
       
    30 (provide 'nsis-mode)
       
    31 
       
    32 ;;; nsis-mode.el ends here