Show
Ignore:
Timestamp:
08/24/08 20:06:01 (4 months ago)
Author:
verbosus
Message:

Added Michael Demmer patch to django-mode.el

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • hacks/trunk/django-mode.el

    r107 r113  
    1010;     for the font-locking patch for HTML syntax 
    1111; 
     12;   - Alessandro Guido 
     13;     for the sgml-mode include patch 
     14;  
     15;   - Michael Demmer 
     16;     for the regexp order issue  
     17 
     18(require 'sgml-mode) 
    1219 
    1320(defvar django-mode-hook nil) 
     
    2431  (list 
    2532   '("{% ?comment ?%}\\(\n?.*?\\)+?{% ?endcomment ?%}" . font-lock-comment-face) 
    26    '("{% ?\\(\\(end\\)?\\(extends\\|for\\|cycle\\|filter\\|firstof\\|debug\\|if\\|ifchanged\\|ifequal\\|ifnotequal\\|include\\|load\\|now\\|regroup\\|spaceless\\|ssi\\|templatetag\\|widthratio\\|block\\)\\) ?.*? ?%}" . 1) 
     33   '("{% ?\\(\\(end\\)?\\(extends\\|for\\|cycle\\|filter\\|firstof\\|debug\\|if\\(changed\\|equal\\|notequal\\|\\)\\|include\\|load\\|now\\|regroup\\|spaceless\\|ssi\\|templatetag\\|widthratio\\|block\\)\\) ?.*? ?%}" . 1) 
    2734   '("{{ ?\\(.*?\\) ?}}" . (1 font-lock-variable-name-face)) 
    2835   '("{%\\|\\%}\\|{{\\|}}" . font-lock-builtin-face) 
     
    3037 
    3138(defvar django-font-lock-keywords  
    32   (append html-font-lock-keywords django-font-lock-keywords-1)  
     39  (append sgml-font-lock-keywords django-font-lock-keywords-1)  
    3340  "Default highlighting expressions for Django mode") 
    3441