template-pre/nsis-mode.el
changeset 257 2f3ac763c340
parent 164 d7ed163b397e
child 258 29533873ee3e
equal deleted inserted replaced
256:51a386bc16b2 257:2f3ac763c340
       
     1 ;;; iar-linker-config-mode.el --- major mode for highlighting NSIS scripts
       
     2 
     1 ;; DO NOT EDIT COMMENT! TAG: nsis-mode
     3 ;; DO NOT EDIT COMMENT! TAG: nsis-mode
       
     4 
       
     5 ;; Copyright (C) 2009, 2010 by Oleksandr Gavenko <gavenkoa@gmail.com>
       
     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 
     2 (when (eq window-system 'w32)
    19 (when (eq window-system 'w32)
     3   (define-generic-mode 'nsis-generic-mode
    20   (define-generic-mode 'nsis-generic-mode
     4     (list ?\;)
    21     (list ?\;)
     5     '("Section" "SectionEnd" "Function" "FunctionEnd" "Call" "Goto")
    22     '("Section" "SectionEnd" "Function" "FunctionEnd" "Call" "Goto")
     6     '(("!\\([A-Za-z]+\\)" (1 'font-lock-builtin-face))
    23     '(("!\\([A-Za-z]+\\)" (1 'font-lock-builtin-face))