~nyuhuhuu/+junk/django-html-mode

« back to all changes in this revision

Viewing changes to django-html-mode.el

  • Committer: Eduardo Padoan
  • Date: 2008-08-22 17:37:49 UTC
  • Revision ID: eduardo.padoan@gmail.com-20080822173749-p0s3lywmg1lj1ntz
Updated tag list for django 1.0 beta

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
           (1+ space)
85
85
           (group (and "end"
86
86
                        ;; end prefix keywords
87
 
                       (or "if" "for" "ifequal" "block" "ifnotequal" "spaceless" "filter")))
 
87
                       (or "autoescape" "block" "comment" "filter" "for" "if"
 
88
                           "ifchanged" "ifequal" "ifnotequal" "spaceless" "with")))
88
89
           (1+ space)
89
90
           (eval django-html-close-block))
90
91
      (1 font-lock-keyword-face))
92
93
     ;; more words after keyword
93
94
     (,(rx (eval django-html-open-block)
94
95
           (1+ space)
95
 
           (group (or "extends" "for" "cycle" "filter" "if not" "else"
96
 
                      "firstof" "debug" "if" "ifchanged" "ifequal" "ifnotequal"
97
 
                      "include" "load" "now" "regroup" "spaceless" "ssi"
98
 
                      "templatetag" "widthratio" "block"))
 
96
           (group (or "autoescape" "block" "comment" "cycle" "debug" "else"
 
97
                      "extends" "filter" "firstof" "for" "if" "ifchanged" "ifequal"
 
98
                      "ifnotequal" "include" "load" "now" "regroup" "spaceless"
 
99
                      "ssi" "templatetag" "url" "widthratio" "with"))
99
100
 
100
101
           ;; TODO: is there a more beautiful way?
101
102
           (0+ (not (any "}")))