~ubuntu-branches/ubuntu/maverick/vim/maverick

« back to all changes in this revision

Viewing changes to runtime/syntax/django.vim

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2009-05-04 11:13:42 UTC
  • mfrom: (1.1.8 upstream) (0.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090504111342-60miqybsixdpc345
Tags: 2:7.2.148-2ubuntu1
* Merge from Debian unstable, remaining changes:
  - debian/runtime/vimrc: "syntax on" is a sane default for non-tiny vim.
  - runtime/syntax/debcontrol.vim:
    + Add "metapackages" to the list of valid sections.
  - runtime/syntax/grub.vim:
    + Add Ubuntu-specific 'quiet' keyword.
  - Drop vim-lesstif package and lesstif2-dev build-dependency.
  - Enable Python interpreter on basic builds.
  - Disable autoindent, line-wrapping, and backup files by default.
* Dropped changes, merged in Debian:
  - Add jaunty, karmic to the list of valid suites.
  - runtime/syntax/debsources.vim:
    + Add "jaunty" to debsourcesDistrKeyword
  - Create a .pot file for translations.
* Drop gutsy from the list of valid distro series, it's been EOLed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
" Vim syntax file
2
2
" Language:     Django template
3
3
" Maintainer:   Dave Hodder <dmh@dmh.org.uk>
4
 
" Last Change:  2007 Apr 21
 
4
" Last Change:  2008 Dec 18
5
5
 
6
6
" For version 5.x: Clear all syntax items
7
7
" For version 6.x: Quit when a syntax file was already loaded
18
18
 
19
19
" Django template built-in tags and parameters
20
20
" 'comment' doesn't appear here because it gets special treatment
 
21
syn keyword djangoStatement contained autoescape on off endautoescape
21
22
syn keyword djangoStatement contained and as block endblock by cycle debug else
22
 
syn keyword djangoStatement contained extends filter endfilter firstof for
 
23
syn keyword djangoStatement contained extends filter endfilter firstof for empty
23
24
syn keyword djangoStatement contained endfor if endif ifchanged endifchanged
24
25
syn keyword djangoStatement contained ifequal endifequal ifnotequal
25
26
syn keyword djangoStatement contained endifnotequal in include load not now or
35
36
" Django templete built-in filters
36
37
syn keyword djangoFilter contained add addslashes capfirst center cut date
37
38
syn keyword djangoFilter contained default default_if_none dictsort
38
 
syn keyword djangoFilter contained dictsortreversed divisibleby escape
 
39
syn keyword djangoFilter contained dictsortreversed divisibleby escape escapejs
39
40
syn keyword djangoFilter contained filesizeformat first fix_ampersands
40
 
syn keyword djangoFilter contained floatformat get_digit join length length_is
 
41
syn keyword djangoFilter contained floatformat force_escape get_digit iriencode join last length length_is
41
42
syn keyword djangoFilter contained linebreaks linebreaksbr linenumbers ljust
42
43
syn keyword djangoFilter contained lower make_list phone2numeric pluralize
43
 
syn keyword djangoFilter contained pprint random removetags rjust slice slugify
 
44
syn keyword djangoFilter contained pprint random removetags rjust safe slice slugify
44
45
syn keyword djangoFilter contained stringformat striptags
45
46
syn keyword djangoFilter contained time timesince timeuntil title
46
 
syn keyword djangoFilter contained truncatewords unordered_list upper urlencode
 
47
syn keyword djangoFilter contained truncatewords truncatewords_html unordered_list upper urlencode
47
48
syn keyword djangoFilter contained urlize urlizetrunc wordcount wordwrap yesno
48
49
 
49
50
" Keywords to highlight within comments