annotate runtime/syntax/htmldjango.vim @ 930:529c6a431ff5 v7.0.056

updated for version 7.0-056
author vimboss
date Wed, 16 Aug 2006 15:04:21 +0000
parents 95dac6af3b3a
children 96cd8222a819
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
798
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
1 " Vim syntax file
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
2 " Language: Django HTML template
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
3 " Maintainer: Dave Hodder <dmh@dmh.org.uk>
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
4 " Last Change: 2006 Mar 06
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
5
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
6 " For version 5.x: Clear all syntax items
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
7 " For version 6.x: Quit when a syntax file was already loaded
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
8 if version < 600
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
9 syntax clear
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
11 finish
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
12 endif
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
13
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
14 if !exists("main_syntax")
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
15 let main_syntax = 'html'
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
16 endif
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
17
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
18 if version < 600
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
19 so <sfile>:p:h/django.vim
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
20 so <sfile>:p:h/html.vim
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
21 else
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
22 runtime! syntax/django.vim
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
23 runtime! syntax/html.vim
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
24 unlet b:current_syntax
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
25 endif
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
26
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
27 syntax cluster htmlPreproc add=djangoPlaceHolder
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
28 syntax cluster htmlString add=djangoPlaceHolder
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
29
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
30 let b:current_syntax = "htmldjango"