Changeset 113
- Timestamp:
- 08/24/08 20:06:01 (3 months ago)
- Files:
-
- 1 modified
-
hacks/trunk/django-mode.el (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hacks/trunk/django-mode.el
r107 r113 10 10 ; for the font-locking patch for HTML syntax 11 11 ; 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) 12 19 13 20 (defvar django-mode-hook nil) … … 24 31 (list 25 32 '("{% ?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) 27 34 '("{{ ?\\(.*?\\) ?}}" . (1 font-lock-variable-name-face)) 28 35 '("{%\\|\\%}\\|{{\\|}}" . font-lock-builtin-face) … … 30 37 31 38 (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) 33 40 "Default highlighting expressions for Django mode") 34 41